Skip to content

DXF

DXF (Drawing Interchange Format) is Autodesk’s open exchange format for CAD data. LinkCAD supports all DXF versions from Release 12 through 2018.

Format Summary

PropertyValue
Extensions.dxf
EncodingASCII or Binary
Import
Export
LicenseBasic
HierarchyBLOCK/INSERT with scale and rotation
LayersNamed layers with colors

Supported Entity Types

EntityImportExportNotes
LINEBasic line segments
POLYLINE2D/3D with width and bulge arcs
LWPOLYLINELightweight polylines (R14+)
ARCCircular arcs
CIRCLEComplete circles
ELLIPSEElliptical arcs and full ellipses
SPLINEApproximated to polylines
TEXTSingle-line text
MTEXTMulti-line text
INSERTBlock references with scale/rotation
REGIONFilled regions with hole detection
HATCHConfigurable import mode
SOLIDFilled triangular/quad areas
POINTConfigurable display modes

Import Options

Units & Scaling

OptionDescriptionDefault
Units valuePhysical units per DXF unit1
Units typeMicrons, millimeters, inches, etc.Micron
ScalingAdditional scaling multiplier1.0

Arc Resolution

OptionDescriptionDefault
PrecisionTolerance, DPI, or segments/360° for arc conversion32 segments/360°

Entity Handling

OptionDescriptionDefault
Ignore textSkip TEXT/MTEXT entitiesOff
Keep closed zero-width polylines as polylinesImport valid closed zero-width POLYLINE/LWPOLYLINE entities as closed polylines instead of polygonsOff
Text line widthStroke width for text (0 = relative)0.0
HATCH processingOn HATCH layer / Separate layer / SkipOn HATCH layer
Polyface meshImport polyface mesh entitiesOff
Polyline end capsFlat, Round, or Square extendedFlat
Resolve layersObey BYBLOCK/BYLAYER attributesOff

Point Import

OptionDescriptionDefault
Import pointsImport POINT entitiesOn
Point modeDot, Cross (+), X-Cross (×), TickX-Cross
Point sizeMarker size in drawing units1.0

Export Options

File Format

OptionDescriptionDefault
DXF versionRelease 12, 14, 2000, or Abaqus2000
Binary DXFWrite binary instead of ASCIIOff

Geometry

OptionDescriptionDefault
Fill polygonsFill zero-width polygons using SOLID entitiesOff
Export as regionsUse REGION entities with hole detectionOff
Hatch polygonsExport polygons as hatched areasOff
Explode textConvert text to polyline outlinesOff
Flatten hierarchyRemove blocks, write flat geometryOff
Explode arraysWrite array instances as separate insertsOff

Units & Precision

OptionDescriptionDefault
Units valuePhysical units per DXF unit1
Units typeTarget unit systemMicron
ScalingAdditional scaling multiplier1.0
End cap typeRound, Flat, or Square for polyline capsRound

Export Version Compatibility

VersionMax Name LengthCharacter SetNotes
Release 1231 charactersAlphanumeric + $_-Maximum legacy compatibility
Release 14255 charactersExtendedEnhanced polyline support
Release 2000255 charactersUnicodeRecommended for most use cases
AbaqusSpecial FEA export format

Common Workflows

GDSII → DXF

Standard IC-to-mechanical conversion. Set DXF output units to match your target CAD system.

DXF → GDSII

Convert mechanical drawings to IC mask layout. Layer names map to GDSII layer numbers via layer maps.

DXF → Gerber

Generate photoplotter output from DXF mechanical drawings.

Technical Notes

  • DXF files are inherently unitless — the unit interpretation depends on application settings
  • Arc-to-polyline conversion quality is controlled by the precision settings
  • The Keep closed zero-width polylines as polylines option preserves valid closed zero-width DXF polylines as editable closed polylines; malformed or self-touching closed contours are imported as open outlines for robustness
  • HATCH entities can be placed on their own layer or the HATCH-designated layer
  • Block names longer than 31 characters are automatically truncated when exporting to R12
  • Binary DXF is more compact but less portable than ASCII DXF

CLI / Command-File Options

These option keys can be used on the command line (e.g. --DxfOutScaling 1000) or in command files (e.g. DxfOutScaling=1000).

Import

KeyTypeDescription
DxfInScalingfloatImport scaling factor
DxfInUnitsUnitintUnit enum (see Units)
DxfInUnitsValueintUnits scaling value
DxfInEndcapTypeintWire endcap style — 0=round, 1=flat, 2=square extended
DxfInExplodeSplinesflagExplode splines to polylines
DxfInHatchProcessingintHatch mode — 0=ignore, 1=import on separate layer, 2=fill
DxfInIgnoreTextflagIgnore TEXT/MTEXT entities
DxfInImportPointsflagImport POINT entities
DxfInKeepClosedZeroWidthPolylinesAsPolylinesflagKeep valid closed zero-width DXF polylines as polylines instead of polygons
DxfInPointModeintPoint display mode (PDMODE bit field: base 0=none, 1=dot, 2=cross, 3=x, 4=diamond; add 32 for circle, 64 for square)
DxfInPointSizefloatPoint size in drawing units (PDSIZE)
DxfInReadPolyfaceMeshflagRead polyface mesh entities
DxfInTextLineWidthfloatText stroke width

Export

KeyTypeDescription
DxfOutScalingfloatExport scaling factor
DxfOutUnitsUnitintUnit enum (see Units)
DxfOutUnitsValueintUnits scaling value
DxfOutFormatVersionintDXF version — 0=DXF 12 Abaqus, 12=DXF 12, 14=DXF 14, 2000=DXF 2000
DxfOutBinaryflagWrite binary DXF format
DxfOutEndcapTypeintWire endcap style — 0=round, 1=flat, 2=square extended
DxfOutExplodeArraysflagExplode array references
DxfOutExplodeTextflagExplode text to polylines
DxfOutExportAsRegionsflagExport polygons as REGION entities
DxfOutFillPolygonsflagFill polygons with SOLID entities
DxfOutFlattenflagFlatten hierarchy
DxfOutHatchPolygonsflagHatch polygons