The IDLffDXF::Read function method reads a file, parsing the DXF object information contained in the file, and inserts it into itself.
Result =Obj->[IDLffDXF::]Read(Filename)
Returns a 1 indicating success in reading the file, otherwise 0.
A scalar string containing the full path and filename of the DXF file to be read.
None
; 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
5.2 |
Introduced |