Worked example

DXF to GDSII, step by step

A small synthetic DXF converted to GDSII with LinkCAD 11.1.8, Windows. Every number on this page was measured from the output file.

Download the files

The sample DXF is synthetic: it was written for this example by a script and contains no customer data. Its coordinates are millimetres, but the file declares no unit.

Options you need

Full format and option matrix

What the sample contains

DXF layerContent
METAL1Two closed 2 × 1 mm rectangles that overlap by 0.5 mm
METAL2A closed 2.5 × 0.5 mm slot with one rounded end (a polyline arc segment)
VIAA circle, radius 0.25 mm
OUTLINEA 6 × 5 mm frame drawn as two open polylines whose ends meet

Convert it from the command line

The command file sets the formats and the DXF unit (4 = millimetre):

[LinkCAD] LcImportFormat=DXF LcExportFormat=GDSII DxfInUnitsUnit=4 DxfInUnitsValue=1

Then run:

linkcad.exe --config dxf-to-gdsii.lsn -i dxf-to-gdsii-sample.dxf -o dxf-to-gdsii-sample.gds --quit --no-save-settings

What LinkCAD wrote

GDSII database unit 1 nm, one cell named dxf-to-gdsii-sample. Extents in µm.

GDSII layerDXF layerElementsVerticesX (µm)Y (µm)
0/0OUTLINE2 open paths6-1,000 … 5,000-1,000 … 4,000
1/0METAL12 boundaries80 … 3,5000 … 1,000
2/0METAL21 boundary200 … 2,748.7962,000 … 2,500
3/0VIA1 boundary323,750 … 4,2502,000 … 2,500

What the numbers show

The same conversion in the wizard

  1. Choose the formats: DXF as input, GDSII as output.
  2. Import options: under Units & Scaling, set 1 DXF unit = Millimeter.
  3. Export options: keep the GDSII defaults.
  4. Select dxf-to-gdsii-sample.dxf.
  5. Repair Open Polylines: this page appears because the frame is open. Select Combine close polylines and splines into polygons, then Execute Repair.
  6. File structure, and Layers in the viewer if you have the View option.
  7. Conversion complete: read the summary.

What to check before you send the GDSII

Measured with LinkCAD 11.1.8, Windows.

Try it with your own file

The trial converts DXF to GDSII with every option for 5 days.