Eagle PCB ULP Tutorial: User Language Program that lists the directory path of the Project File
When you need to know the path of the project you are running the ULP within the following code snippet is useful. string get_project_path() { if (board) board(B) return(filedir(B.name)); if (schematic) schematic(B) return(filedir(S.name)); if (library) library(B) return(filedir(L.name)); } string Directory; Directory Read more…