BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

The object model hasn't changed much, if at all, since EG 4.2.  Here's that reference.

 

http://support.sas.com/documentation/onlinedoc/guide/SASEGScripting42.zip

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

View solution in original post

6 REPLIES 6
ChrisHemedinger
Community Manager

The object model hasn't changed much, if at all, since EG 4.2.  Here's that reference.

 

http://support.sas.com/documentation/onlinedoc/guide/SASEGScripting42.zip

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.
PhilC
Rhodochrosite | Level 12

@ChrisHemedinger 

 

So I've set for myself a goal to learn to use EG to save an EGcode object to file as it would work in the "Save as" button on the menu bar which is in the pane of the Enhanced Editor while editing the code.   This "Save as" is different than the "SaveAs" method of the object and different to the button on menu bar of the Project view  " ︙► Share ► Export all code in project" (EG v8.2)

 

Can you offer a hand in revealing how this coded or a way to access the method the application evokes?  And/or is this available to the user of the EG API? 

ChrisHemedinger
Community Manager

Hi @PhilC - check my example here, which exports ALL code in a project.

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.
PhilC
Rhodochrosite | Level 12

thanks, I have used this code a lot. I want to go further than this.

 

So I want to also change the EGCode to an EGLink (? i think ?) as the first mentioned "save as" method does for a user.  When a EGCode object is "saved as", this way, the node's icon changes and code is placed in an external file, editing the code changes the external file.  I want to iterate over an object collection and do this "save as" like this to each, then save the project with its changes.

ChrisHemedinger
Community Manager

Oh, I understand.  You want to change the properties of the item in the project.  Unfortunately I don't think you can do this with the automation scripting interface.

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 1162 views
  • 0 likes
  • 2 in conversation