Many of the object types have their own Constants section which lists the builtin constants for that particular object (see e.g. UL_PIN).
The following builtin constants are defined in addition to the ones listed for the various object types:
EAGLE_VERSION | EAGLE program version number (int) |
EAGLE_RELEASE | EAGLE program release number (int) |
EAGLE_SIGNATURE | a string containing EAGLE program name, version and copyright information |
REAL_EPSILON | the minimum positive real number such that r + REAL_EPSILON != r |
REAL_MAX | the largest possible real value |
REAL_MIN | the smallest possible (positive!) real value the smallest representable number is -REAL_MAX |
INT_MAX | the largest possible int value |
INT_MIN | the smallest possible int value |
PI | the value of "pi" (3.14..., real) |
usage | a string containing the text from the #usage directive |
These builtin constants contain the directory paths defined in the directories dialog, with any of the special variables ($HOME and $EAGLEDIR) replaced by their actual values. Since each path can consist of several directories, these constants are string arrays with an individual directory in each member. The first empty member marks the end of the path:
path_lbr[] | Libraries |
path_dru[] | Design Rules |
path_ulp[] | User Language Programs |
path_scr[] | Scripts |
path_cam[] | CAM Jobs |
path_epf[] | Projects |
When using these constants to build a full file name, you need to use a directory separator, as in
string s = path_lbr[0] + '/' + "mylib.lbr";
The libraries that are currently in use through the USE command:
used_libraries[] |
Index | Copyright © 2005 CadSoft Computer GmbH |