DXF2GBR EngineExample of Command Line and Resource FilesWe have the following files in the directory C:\test. This is our "working directory" ac2000.dxf - dxf file to convert ac2000.apt - aperture list conv.bat - batch file xx.lst - layer list file The Batch File"c:\ASM501\a2g501.exe" "@c:\test\ac2000.rsp" 0 Aperture FileAPTUNITS MM FORMAT 4.3 SUPPRESS LEADING SUPPRESS CR CIRCULAR on LINK off TEXT 5 LINE d10 ARCRES 9 REMOVE_HATCH off FLOATZERO off FONT "C:\Program Files\AutoCAD 2002\Fonts\romans.shx" FONTDIR "C:\Program Files\AutoCAD 2002\Fonts" CIRANG 360 ABSOLUTE on REMOVE_DIM off FLASH on FTEXT 50 D10 0.0254 d Round 0.0254 0.0254 D11 0.1270 d Round 0.1270 0.1270 D21 0.0000 d Poex 0.0000 0.0000 D22 0.0000 d Poex 0.0000 0.0000 The Layer List xx.lstFor each AutoCAD layer that should be converted, the first column is the name of the AutoCAD layer and the second column is the path/filename of the resulting Gerber file. You should quote both the AutoCAD layer name and the path/filename. Use double quotes. The names of the AutoCAD layers were obtained by scanning the AutoCAD and reading the .lyr file. "0" "C:\test\0.gbr" "DIM" "C:\test\DIM.GBR" "gaso1" "C:\test\gaso1.gbr" The Command LineThe command line show below invokes the a2g501.exe engine and references a response file called ac2000.rsp that has been created prior to the execution of the command line. C:\WCAD\ASM501\a2g501.exe @"C:\test\ac2000.rsp" 0 The Response FileThis file contains both the command line arguments and a reference to the aperture file. It is all one line but is shown broken into chunks for clarity. "C:\test\ac2000.dxf" MM 0.001 "@C:\test\xx.lst" 1.0 -nlnk -t1 -on:21,21 -c:0 "-cfg:C:\test\ac2000.apt" where: MM units of the DXF file 0.001 input database resolution "@C:\test\xx.lst" the list file containing layers to convert 1.0 scale factor -nlnk no line linking (required for ASM 5010 -t1 trace mode =1 (draw plines with width using matching aperture) -on:21,21 outline using D21 -c:0 no compensation "-cfg:C:\test\ac2000.apt" reference to the aperture file |
Page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |