I am on osx. I would like to be able to convert my HPGL file into Eagle script but I understand that the hpgl2eagle1.c file needs to be compiled. How can I do this? Terminal? Could you please explain how exactly? It would be awesome!
I don't use OSX so I'm afraid its just a guess but I'm pretty sure you just need to open a terminal and type
It should generate a file (usually called a.out). Then you can type
./a.out sourcefilename destfilename
Sorry I thought you tested on Mac!
g++ is no recognized by the Terminal. This is why I asked here.
I guess I'll need to ask on os x forums then.
I found a way trying some commands in the Terminal! All good now.
Inkscape is great open source software (although it crashes frequently) which can import a bunch of formats including bitmap and DXF.
It can export into HPGL format, and the simple code below can be used to convert to Eagle script files.
I tried this with a DXF file from Solidworks and it worked well. Also it was possible to convert a bitmap image (Truetype
text) into line art using inkscape's 'trace bitmap' function, convert to HPGL and then convert to Eagle script format.
The code can be compiled using "g++ hpgl2eagle.c". To execute, type:
hpgl2eagle myinputfile.hpgl myoutputfile.scr
Source code is here because I have trouble uploading files to element14. If someone wants to enhance it or to generate an
executable and upload it somewhere that would be great (I tested on a MAC).
Hopefully one day someone can write an Inkscape plug-in that can import/export Eagle script files.