dxf-g — DXF Translator (DXF to BRL-CAD)
dxf-g converts the specified file.dxf to a BRL-CAD database.g file.
The following options are available:
-c
Only the first color seen for a layer should be used. Without this option, layers may be broken into separate BOT primitives according to color assigned.
-d
Sets a debug flag. The only effect is to cause a core dump on failure. This is probably not useful except for developers.
-v
Produces very verbose output on stderr.
-s
scale_factorProvides a scale factor to be applied to the DXF input. This can be used for DXF files that do not provide units information.
-t
toleranceSpecifies the maximum distance (in mm) between two vertices at which the two vertices will be considered to be the same vertex.
The file.dxf file is expected to be in the ASCII Autodesk DXF format as defined in the Autocad 2006 manuals. This converter handles entities of types:
POLYLINE LWPOLYLINE LEADER DIMENSION VERTEX LINE CIRCLE ARC ELLIPSE 3DFACE TEXT MTEXT ATTRIB SOLID SPLINE
The POLYLINE entities in AUTOCAD are actually a container for numerous different entity types. The types of POLYLINE entities converted include:
3D polylines; 3D polygon meshes; polyface meshes
SOLID entities are 2D shapes with a solid fill, but this converter does not do any filling. Each layer is converted to a separate object. Colors are also converted.