Eagle PCB

Eagle PCB ULP Tutorial: Using NotePad++ to Write ULP and highlight Code

Research Link Using NotePad++ with User Language Programs  –  Local version of the NotePad++ with ULP xml file ‚Äč From the ReadMe.txt file Notepad++ has a User Defined Language facility that is documented in its help files and at the NpWiki++: http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=User_Defined_Languages The file "Notepad++ UserDefineLang for Cadsoft ULP v0.1.xml" contains a Read more…

By Fudgy McFarlen, ago
Eagle PCB

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…

By Fudgy McFarlen, ago