~/cnc/pstoedit_3.21/src > ./pstoedit -f pcb 8085b.ps 8085b.dat"8085b.ps" is the layout and the output file is "8085b.dat".
Sample header Opening page: 1 Closing page: 1 Sample trailerIf some items could not be converted, they will be written into "pcberror.dat"
~/cnc/pstoedit_3.21/src > test_drvpcb 8085b.dat 8085bv.ps"8085bv.ps" is the data from "8085b.dat" converted back to postscript. The original layout can be compared with this file by using any Postscript viewer.
By inspecting "pcberror.dat" one can see what items have not been converted.
L 289 3855 289 169 R 1844 628 1899 682 F 1871 748 1871 748 55 F 1871 842 1871 842 55 F 1871 935 1871 935 55 . . .Every line of the file contains one Line, Rectangle or Filled line. The syntax is:
L x1 y1 x2 y2 F x1 y1 x2 y2 w R x1 y1 x2 y2With (x1/y1) and (x2/y2) as end or corner points and w as the line width. The units are mil (1/1000 inch).
If the used layout-program supports the printing of holes only, then this can always be used to get the drill data (with diameter).
To generate the drill data out of a postscript layout, "pstoedit" with the environment variable
pcbdrv_drill
The output format is then:
D x1 y1 d
"pcb_error.dat" will not be empty if a complete layout is used as input, it contains the lines in this case.
After adding these files "pstoedit" can then be compiled as described in the distribution.
See the "pstoedit" Documentation to see how it works. The drivers, in this case "drvpcb" get single paths that must be converted to the output format. "drvpcb" was created by modifying "drvsample". "drvpcb" tries to convert each path into a line, filled line, rectangle or circle. If this fails the original output from "drvsample" is written in "pcberror.dat". See "drvpcb.cpp" for the details. It should be easy to add support for further objects if necessary.
Hans-Jürgen Jahn 4.09.02