1
\$\begingroup\$

In Eagle CAD software (ver. 5.12), how do I get the file name of the User Language Program (ULP) from inside this program (programmatically)?

I only know how to get the name of the schematic, board or library. For example, to get the board name:

board(B) printf(B.name);
\$\endgroup\$

1 Answer 1

0
\$\begingroup\$

I figured this out.

Command line arguments are available to the program through the global Builtin Variables argc and argv.

So the following renders the file name of the user language program (same as in a C program):

printf(argv[0]);
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.