Is there a nice global variable in the ULP language that has the current
path to the currently opened .sch/.brd file?
Is there a nice global variable in the ULP language that has the current
path to the currently opened .sch/.brd file?
there is an object type "board" including a data member "name" that can
be used to determin the path and name of the currently opened brd.
These types/data members are existing for a schematic also:
project.board(BRD) {
/* path of board */
string BoardPath = filedir(BRD.name);
/* name of opened board */
string BoardName = filename(BRD.name);
}
project.schematic(SCH) {
string SchematicPath = filedir(SCH.name);
string SchematicName = filename(SCH.name);
}
Is there a nice global variable in the ULP language that has the current
path to the currently opened .sch/.brd file?