DXF to Pattern Generator command line

The ASM2500 Windows is usually executed from the GUI but in some cases, customers wants to run the software from a batch file.
The batch file is composed of 4 programs...

  • C:\wcad\DXF2PG\d2pgxeng.exe: This executable reads the DXF file along with the pattern generator config file, and creates a new file in our internal format (.vu extension).
  • C:\wcad\DXF2PG\gscan.exe: The gscan program reads the .vu file and creates a text file with the DXF layer names, cell/block names and their extents. The output file has a .ssn extension.
  • C:\wcad\DXF2PG\d2pgeng.exe: The translation engine which convert the data to our Intermediate (.int) pattern generator format.
  • C:\wcad\DXF2PG\emask: The emask module which formats the intermediate file to Electromask format. Another formatter mmask will format the data to Mann3000/3600.

dxf2pg Command Line Syntax

Here is a sample batch file...
C:\wcad\DXF2PG\d2pgxeng.exe C:\junk\support\2500_pg\3409.dxf -gds C:\junk\support\2500_pg\3409.vu -cfg:C:\junk\support\2500_pg\PG.CFG -link -c:0.000000 
C:\wcad\DXF2PG\gscan.exe  C:\junk\support\2500_pg\3409.vu -sea -sh -o:3409.ssn
C:\wcad\DXF2PG\d2pgeng.exe C:\junk\support\2500_pg\3409.vu 3.000000 0 3409 -s1.000000 -relax -polycnt:100000
C:\wcad\DXF2PG\emask -cs:3409.txt -d: -p

dxf2pg Command Line Description

C:\wcad\DXF2PG\d2pgxeng.exe C:\junk\support\2500_pg\3409.dxf -gds C:\junk\support\2500_pg\3409.vu -cfg:C:\junk\support\2500_pg\PG.CFG -link -c:0.000000 
This command convert the DXF file to our internal format file (.vu file). The pattern generator config file must be 
present on the command line as well.

C:\wcad\DXF2PG\gscan.exe  C:\junk\support\2500_pg\3409.vu -sea -sh -o:3409.ssn
This command scans the .vu file and creates a scan file (.ssn) with the DXF layer
names, cell names, and their extents.

C:\wcad\DXF2PG\d2pgeng.exe C:\junk\support\2500_pg\3409.vu 3.000000 0 3409 -s1.000000 -relax -polycnt:100000
This command convert the .vu file to pattern generator format. The exact command line is..
d2pgeng.exe input_file.vu feature_size layers top_cell options...

C:\wcad\DXF2PG\emask -cs:3409.txt -d: -p
This command converts the intermediate file to Electromask file format. It takes the parameters from a text file. Here is 
what is in the text file..
 
READ 340900.INT
UNITS UM
SCALE 1
MOVE 75000,100000
OPEN 340900.EM
GENERATE
CLOSE
QUIT

In this example, emask reads the intermediate file, it sets the units (microns) and scale (1), it then moves the data
by 75000,100000 microns and generates the output electromask file.




ARTWORK CONVERSION SOFTWARE, INC.       Company Profile
417 Ingalls St., Santa Cruz, CA 95060    Tel (831) 426-6163     Fax 426-2824    email: info@artwork.com