ULP Table Of Contents

ULP Table Of Contents

sdalling
Advocate Advocate
1,294 Views
4 Replies
Message 1 of 5

ULP Table Of Contents

sdalling
Advocate
Advocate

I normally have designs that contain multiple sheets. Normally when creating a table of contents I have created it by hand. I recently have been creating my own ULP's to solve this. 

 

Right now I am able to create a ULP that can iterate over all of the sheets using the loop variable sheets() in schematic(). What I cant figure out is where the the sheet description is stored. I am able to name my sheets and the sheet number along with the page description appear in the drop down selection bar. Does anyone know where this information is stored or had any luck extracting this data from the sheets? 

Reply
Reply
0 Likes
Accepted solutions (1)
1,295 Views
4 Replies
Replies (4)
Message 2 of 5

rachaelATWH4
Mentor
Mentor
Accepted solution

@sdalling wrote:

 

Right now I am able to create a ULP that can iterate over all of the sheets using the loop variable sheets() in schematic(). What I cant figure out is where the the sheet description is stored.  


There is a description data member for UL_SHEET. So is accessible by:

 

string desc = "";

 

schematic(S) {

   S.sheets(SH) {

      desc = SH.description;

 

      // do something useful with desc here....

 

   }

}

 

I just tested to make sure it does work and this will place each sheet description into desc for each iteration of the loop. I tested by putting in a dlgMessageBox(desc) call within the sheets loop and it correctly popped up a box with the description of each sheet.

 

Best Regards,

 

Rachael

Reply
Reply
Message 3 of 5

sdalling
Advocate
Advocate

Thank you @rachaelATWH4. That worked perfectly. 

 

I did not see that description is a variable under sheet. Do you know if there is a more up to date ULP manual than 5.4? This one seems quite old. 

 

 

Reply
Reply
0 Likes
Message 4 of 5

rachaelATWH4
Mentor
Mentor

I'm glad I could help and you've got it working now 🙂

 

I don't know if there is a later pdf ULP manual, I just use the help build into EAGLE. There is a full description of each of the objects and attributes available from there.

 

Best Regards,

 

Rachael

Reply
Reply
0 Likes
Message 5 of 5

jorge_garcia
Autodesk
Autodesk
Hi @sdalling,

I hope you're doing well. There is a newer ULP manual, you can download it here:
http://eagle.autodesk.com/eagle/download/2285

Best Regards,


Jorge Garcia
​Product Support Specialist for Fusion 360 and EAGLE

Kudos are much appreciated if the information I have shared is helpful to you and/or others.

Did this resolve your issue? Please accept it "As a Solution" so others may benefit from it.
Reply
Reply