Add sheet via ulp

Add sheet via ulp

Anonymous
Not applicable
609 Views
1 Reply
Message 1 of 2

Add sheet via ulp

Anonymous
Not applicable

Hello,

 

I am a newbie concerning EAGLE ULP's.

I am using EAGLE version 7.7.0

 

My idea is to add a new sheet to my schematics via an ulp. In this new sheet a dedicated border should be placed and appropriate header settings should be copied from earlier schematic headings (project name, author, revision, ..etc.) or asked for (sheet name).

 

I've succeeded to set-up a dialog window in which is asked for the dedicated border size (A4, A3 or A2) and orientation (Landscape or Portrait).

 

The borders are placed in a dedicated library as well as the border header info (symbol: DOCFIELD).

 

To finish this ULP succesfull, it should create a new sheet, insert the border with the information got from the dialog window, fill-in the variables in the DOCFIELD (generic variables got from earlier sheets, and fill-in the sheet name from the dialog window, insert the sheet number).

 

Is there anyone who can help me, any help is welcome.

 

Kind regards,

Harry van Essen

Reply
Reply
610 Views
1 Reply
Reply (1)
Message 2 of 2

rachaelATWH4
Mentor
Mentor

Hello,

 

So the way ULP works is you build up a a string which contains a series of command line commands and then pass this to EAGLE to execute via the exit() function when you terminate your ULP.

 

So first what you need to do is work out how to do what you want to do from the command line so you can work out how you need to build up your command string. Then you need to look at what information you need to extract from within the various objects available within ULP in order to create your complete command string.

 

If you've managed to get a dialog up with various options, you are a reasonable way to understanding enough ULP to be able to do this. Give the above a go and if you need any more info or get stuck then post up the specific thing you are struggling with (including ULP examples) up here.

 

Best Regards,

 

Rachael

Reply
Reply