DXF Reader

Supported Entities

Entities supported by the DXF reader.
  • Free points (POINT)
  • Free curves (LINE)
  • Surfaces (3DFACE)
  • Solid (SOLID)
  • Facets/triangles (POLYLINE with Group Code 70=64 for polyface mesh)

Import Options

The DXF reader uses the dxf_reader.ini file.
@BodyIdAsMetadata
Value Description
on Assign body identifier as metadata.

BODY_ID

off Do not assign body identifier as metadata (default).
@CleanupTol
Value Description
double A negative value (default) indicates to use the auto cleanup tolerance. A value greater than the calculated auto cleanup tolerance indicates to use that specific tolerance. Refer to the CAD Cleanup Tolerance.
@ColorsAsMetadata
Value Description
integer

Read color attributes of geometric entities as metadata with integer values.

COLOR_RGB

on

Read color attributes of geometric entities as metadata.

COLOR_RGB

off Do not read color attributes (default).
@CreationType
Value Description
Parts Generate a full part-based hierarchy.
BOMOnly Generate an empty part-based hierarchy.
TreeOfComponents Generate an assemblies/components based hierarchy.
PackIntoSinglePart Consolidate hierarchy into a single part.
@LegacyHierarchyAsMetadata
Value Description
on Generate metadata with the original CAD hierarchy within the part.

LEGACY_HIERARCHY

off Do not generate metadata with the original CAD hierarchy within the part (default).
@MetadataPrefix
Value Description
string The string is prefixed to all metadata names. No prefix is used by default.

See CAD Metadata Naming for more details.

@ScaleFactor
Value Description
double Define the model scaling factor during import.

Default is 1.0.

@SplitComponents
Value Description
Part Generate part-based component (only allowed value if CreationType=Parts).
General Keep component as in CAD (only allowed value if CreationType=TreeOfComponents).
@TargetUnits
Value Description
CAD units Keep the units of the CAD files (default for GUI).
MKS [m kg N s] Convert to the corresponding units system.
MMKS [mm kg N s] Convert to the corresponding units system.
MPA [mm t N s] Convert to the corresponding units system.
CGS [cm g dyn s] Convert to the corresponding units system.
MMKNMS [mm kg kN ms] Convert to the corresponding units system.
MMGNMS [mm g N ms] Convert to the corresponding units system.
IPS Std [in pounds lbf s] Convert to the corresponding units system.
IPS Grav [in slinch lbf s] Convert to the corresponding units system.
FPS Std [ft pounds lbf s] Convert to the corresponding units system.
FPS Grav [ft slug lbf s] Convert to the corresponding units system.
Scale factor Apply the corresponding scale factor (default for no GUI to allow supporting legacy scripts).

Supported Metadata

Metadata generated from the DXF reader.
BODY_ID
Type Entities Description
string
  • points
  • lines
  • surfs
Identifier of the CAD body containing the entity.

Generated when @BodyIDAsMetadata=on

LEGACY_HIERARCHY
Type Entities Description
string
  • points
  • lines
  • surfs
Hierarchy of an entity within a part.

Generated when @LegacyHierarchyAsMetadata=on