Enter text in Eagle script

Enter text in Eagle script

delcacho
Explorer Explorer
830 Views
3 Replies
Message 1 of 4

Enter text in Eagle script

delcacho
Explorer
Explorer

Hello, I want to customize my silkscreen with some text generated within an Eagle script. How do I do that? Thank you, Carlos

0 Likes
Accepted solutions (1)
831 Views
3 Replies
Replies (3)
Message 2 of 4

one-of-the-robs
Advisor
Advisor

@delcacho wrote:

Hello, I want to customize my silkscreen with some text generated within an Eagle script. How do I do that? Thank you, Carlos


Script or ULP?

A script is a list of Eagle commands with virtual mouse events. It's directly equivalent to carrying out a sequence of normal user interactions, and thus is quite capable of placing text on the tPlace layer to get it on the silk screen. However, it's a dumb "batch" operation with no programming capabilities.

A User Language Program is a (fairly) fully capable programming language that has read access to much of your design data. It can process information about the board and thus decide what the text should be and where it should be located. However, it only has read access and therefore cannot actually place the text.

If you want a ULP to make changes to your design, such as placing some text, then the standard workaround is to write a ULP that works out all the steps needed then writes them to a SCR file which it then executes on exit.

0 Likes
Message 3 of 4

delcacho
Explorer
Explorer

Right now I am using an SCR file. Is there a way to specify the landing point of the TEXT command without pointing with the mouse? If not, I may have to move to ULP, I guess

0 Likes
Message 4 of 4

one-of-the-robs
Advisor
Advisor
Accepted solution

Read the help on "command syntax".

The landing point of the text can be specified in a SCR with a coordinate pair as part of the TEXT command. The cordinates are treated as equivalent to a mouse click at that location. This is true of all commands that normally have mouse clicks to progress or complete them.

0 Likes