I just build a same solution, for my part it's to plot gerber files and documentation in single click.
They are no way to run the CAM processor directly from a script or ulp function, it is mentionned on Eagle documentation.
To solve this probleme the solution is to open many other instances of eagle with shell command line like: eagle.exe -X
You can found documentation in the 'ulp manual' of eagle.
This allow access to the CAM processor the result is stricly the same ( it is the CAM processor), but many CAREFULL,
this solution plot the GERBER file from the board saved on the Hard drive, not the board edited on the initial instance of Eagle,
So it is important to Save the lastest modification of your board (if you have) before launch the GERBER plot (from external instances of Eagle).
To do that, the only solution that I found is to execute 'write' command in a script file (scr). this function save the Bord and schematic file on the hard drive, and for my solution, this is this scr file that launch my ulp file.
Regards.
I just build a same solution, for my part it's to plot gerber files and documentation in single click.
They are no way to run the CAM processor directly from a script or ulp function, it is mentionned on Eagle documentation.
To solve this probleme the solution is to open many other instances of eagle with shell command line like: eagle.exe -X
You can found documentation in the 'ulp manual' of eagle.
This allow access to the CAM processor the result is stricly the same ( it is the CAM processor), but many CAREFULL,
this solution plot the GERBER file from the board saved on the Hard drive, not the board edited on the initial instance of Eagle,
So it is important to Save the lastest modification of your board (if you have) before launch the GERBER plot (from external instances of Eagle).
To do that, the only solution that I found is to execute 'write' command in a script file (scr). this function save the Bord and schematic file on the hard drive, and for my solution, this is this scr file that launch my ulp file.
Regards.