Contains all information required for DXF Import.
![]()
Note: DXF files are unit-less, and objects can be assigned any scale. It is important that you are aware of the imported DXF file units & scale. Fab3000 needs to know what physical unit and scale to use for 1 DXF unit. For example:
If a DXF file was designed in inches, set units to dbcInch with a scale of 1.0
If a DXF file was designed in Microns with a 10X scale, set units to dbcMicron with a scale of 10.0
Member Functions:
==============
void setFileName( char *value )
THIS FUNCTION IS REQUIRED
Set the DXF file name to import.
void setUnits( int value )
THIS FUNCTION IS REQUIRED
Assigns the units to use during the import of this DXF file.
Note: DXF files are unit-less, so it is vital to specify the proposed units & scale for 1 DXF physical unit. Choose from dbcMicron, dbcMillimeter, dbcCentimeter, dbcMeter, dbcMil, dbcInch, dbcNanometer. For more info on units see: Units
void setScale( float value )
Assigns the scale to use during the import of this DXF file.
void setTraceMode( int value )
OPTIONAL: DEFAULT VALUE = dbcTruncatePathStyle
This setting controls the End caps for open-polylines with width.
dbcTruncatePathStyle: Square End cap, no extension.
dbcExtendPathStyle: Square End cap, 1/2 width extension.
dbcRoundPathStyle: Round End cap, 1/2 width extension.
For more info on Trace Mode see: Path Style Modes
void setFillMode( int value )
OPTIONAL: DEFAULT VALUE = 1
If set to 1, all closed boundaries will become filled polygons. If set to 0, all closed boundaries will be open paths, and use the Default Line Width.
void setIgnoreHatch( int value )
OPTIONAL: DEFAULT VALUE = 0
If set to 1, all Solid Hatches will be omitted.
void setDeEmbedMode( int value )
OPTIONAL: DEFAULT VALUE = 0
If set to 1, Polygon De-Embedding will be used. (May be time consuming)
Note: Use Polygon De-Embedding automatically solves the polygon-inside-of-polygon problem found in many mask designs. The polygon-inside-of-polygon is often the hardest mistake to catch and many times there are 1000s of overlapping polygons on a layer; it's almost impossible to visually determine the polarity for each. A mask operator can sometimes take hours attempting to repair or redraw the data so that re-entrant polygons are created with voids or has to break up the polygons into slices.
void setByBlock( int value )
OPTIONAL: DEFAULT VALUE = 0
If set to 1, block entities that are on designed layer '0', will be changed to the layer of the respective insert.
void setIgnoreDimension(int value )
OPTIONAL: DEFAULT VALUE = 0
If set to 1, dimensions will be omitted.
void setJoin( int value )
OPTIONAL: DEFAULT VALUE = 0
If set to 1, adjacent lines and arcs that form a boundary are automatically joined. This is very useful for creating polygons from seperate lines and arcs entities in the DXF file.
void setLineWidth( float value )
OPTIONAL: DEFAULT VALUE = 1
All 0-width DXF entities (such as lines, arcs, 0-width polylines) will be assigned this physical width (if they do not form a filled-polygon). Value is in microns.
void setTextWidth( float value )
OPTIONAL: DEFAULT VALUE = 1
Determine a standard line width to be used for all DXF text.
void setTextRatio( float value )
OPTIONAL
The text line width will be determined by a ratio of the text height divided by your supplied value.
void setArcDeviation( float value )
OPTIONAL: DEFAULT VALUE = 0.01
The maximum error allowed when calculating points on an arc. This feature allows designs with large and small radius arcs to equally maintain high-resolution and quality. The smaller the Arc Deviation the more accurate your final arcs will become - however exported file sizes may become larger. Value is in microns.