Download and try LinkCAD DXF, GDSII, CIF, PostScript Translator now for free!

Example Command File

Overview

 

The following example uses a command file to configure LinkCAD.

We want to prompt the user for a GDSII file, and convert it to a DXF file "out.dxf". All option and format selection dialogs should be hidden.
The command file looks like this: (DownloadDownload to hard disk).

 

Command File

Comment

[LinkCAD]

Command file header.

LcLoadDefaults     = true

Load sensible default values for all options.
Note: always specify this option as the first option !

LcExitWhenFinished = false

Quit when finished (set to true, and add the value SummaryDialog  to LcSkipSteps to automatically exit after the conversion).

LcNoRestart        = true

Prevent restarting of conversion.

LcShowSplash       = false

 

LcSkipSteps        = "SelectFormat;

                      ImportOptions;

                      ExportOptions;

                      StructureDialog;

                      SelectExportFile"

Skips all but the polygon repair and the log dialogs.

Note: the entire option must appear on a single line, and without spaces separating the dialog specifiers!

LcImportFormat     = GDSII

Select GDSII as the import format.

GdsInIgnoreText    = true

Ignore text.

LcExportFormat     = DXF

Select DXF as the export format.

LcExportFile       = out.dxf

Save exported file as out.dxf.

DxfOutUnitsValue   = 1

DxfOutUnitsUnit    = 1

Set DXF units to 1 micron.

 

Save this command file as "command.ini", and start LinkCAD from the command line with:

LinkCAD -LcCommandFile=command.ini

If called from a batch file or a program, you can check the exit status to determine if the conversion was successful. An exit status of 0 indicates successful conversion, an exit status of 1 indicates an error.