GET_DXF_OBJECTS
Syntax | Return Value | Arguments | Keywords | Structure of DXF File Information | Examples | Version History | See Also
The GET_DXF_OBJECTS function returns an IDLgrModel containing graphics from a given DXF file.
Syntax
Result = GET_DXF_OBJECTS( Filename [, Blocktable] [, Layertable] [, /BYLAYER] [, IGNORED=array])
Return Value
Returns an IDLgrModel object for the Model_Space block (the default block of the DXF file).
Arguments
Filename
A string containing the full path to the DXF file.
Blocktable
A named variable that will contain an array of structures describing the blocks contained in the DXF file. See Structure of DXF File Information.
Layertable
A named variable that will contain an array of structures describing the layers contained in the DXF file. See Structure of DXF File Information.
Keywords
BYLAYER
Set this keyword to read files by layer. By default, files are read by block.
IGNORED
Set this keyword to a named variable that will contain an array of 21 elements containing the counts of DXF entities that were ignored because of unimplemented DXF data types.
Structure of DXF File Information
The tags for the structure passed by the BLOCKTABLE and LAYERTABLE keywords are as follows:
Examples
filename = FILEPATH('heart.dxf', SUBDIR=['examples', 'data'])
oModel = GET_DXF_OBJECTS(filename)
XOBJVIEW, oModel
Version History