|
Description
|
Returns a reference to a collection of "Object" objects. Each object corresponds to an entry of the Objects section (OBJECTS) of the DXF file.
|
Syntax Visual Basic
|
[form.]DXFReader.Objects
|
|
Visual C++
|
C_Collection DXFReader.GetObjects();
|
|
Delphi
|
property Objects: _Collection;
|
|
C#
|
VBA.Collection DXFReader.Objects;
|
|
Remarks
|
Use the Objects collection to retrieve or remove an individual Object object.
The methods of the Objects collection are:
| Count | Counts the defined Objects | | Remove | Removes a Object object from the Objects collection |
To count all the objects of the Objects collection use the following code:
Dim NObjects As Long
NObjects = DXFReader1.Objects.Count
To remove a Object object, for example the first, from the Objects collection use the following code:
DXFReader1.Objects.Remove (1)
All of the properties for the Object object are listed in the following table:
| Property | Data Type | Description |
| | Handle | String | Handle | | g1 | String | Group code 1 | | ObjectType | String | The Object type name |
The code below lists the contents of the OBJECTS section of e DXF file:
Dim Obj as Object
With DXFReader1
For Each Obj In .Objects
Printer.Print Obj.ObjectType
Next Obj
End With
See also the AddObject method.
|
|
Data Type
|
Collection
|