I'm updating a ULP that moves around text strings to simplify the process
of cleaning up the silkscreen and documentation layers after routing.
It has always bothered me that some objects, like text strings, can only be
identified by their coordinate in commands like MOVE.
First, is this really true? If so, that seems dangerous since you're
relying on multiple objects not having the same coordinate. To minimize
the chance of error, I make sure only one layer at a time is displayed.
Multiple text strings shouldn't be at the same place, but stuff happens,
even if just by accident.
If it is not possible to unambiguously identify specific text strings in
command like MOVE, ROTATE, and the like, then something like a unique "ID"
or "handle" would be useful in the UL_TEXT data structure. The commands
would be able to accept that in place of the starting coordinate. The
syntax around this doesn't need to be pretty, since it would only be
intended for writing by a ULP.
Any other suggestions how to perform actions on a particular text string by
writing a script from a ULP?
--
Web access to CadSoft support forums at www.eaglecentral.ca. Where the CadSoft EAGLE community meets.