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);

1 Answer 1


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):


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.