IDL Programming > Objects > File Format Object Classes > IDLffDXF::Read

IDLffDXF::Read

Syntax | Arguments | Keywords | Examples | Version History

The IDLffDXF::Read function method reads a file, parsing the DXF object information contained in the file, and inserts it into itself.

Syntax

Result =Obj->[IDLffDXF::]Read(Filename)

Return Value

Returns a 1 indicating success in reading the file, otherwise 0.

Arguments

Filename

A scalar string containing the full path and filename of the DXF file to be read.

Keywords

None

Examples

; Read all the lines from the electrical layer:

oDXF = OBJ_NEW('IDLffDXF')

IF (oDXF->Read('myDXF.dxf')) THEN BEGIN

   contents = oDXF->GetContents(4,COUNT=numLines, $

      LAYER='Electrical')

   IF (numLines ne 0) THEN BEGIN

      lines = oDXF->GetEntity(4,LAYER='Electrical')

   ENDIF

ENDIF

Version History

5.2

Introduced