|
Description
|
Returns a reference to a collection of "Class" objects. Each object corresponds to an entry of the Classes section (CLASSES) of the DXF file.
|
Syntax Visual Basic
|
[form.]DXFReader.Classes
|
|
Visual C++
|
C_Collection DXFReader.GetClasses();
|
|
Delphi
|
property Classes: _Collection;
|
|
C#
|
VBA.Collection DXFReader.Classes;
|
|
Remarks
|
Use the Classes collection to retrieve or remove an individual Class object.
The methods of the Classes collection are:
| Count | Counts the defined Classes | | Remove | Removes a Class object from the Classes collection |
To count all the objects of the Classes collection use the following code:
Dim NClasses As Long
NClasses = DXFReader1.Classes.Count
To remove a Class object, for example the first, from the Classes collection use the following code:
DXFReader1.Classes.Remove (1)
All of the properties for the Class object are listed in the following table:
| Property | Data Type | Description |
| | InstanceCount | Integer | | | RecordName | String | Class DXF record name. These should always be unique. | | CppClassName | String | C++ class name. Used to bind with software that defines object class behavior. These are always unique. | | ApplicationName | String | Application name | | ProxyFlags | Long | Proxy capabilities flag. Bit coded value that indicates the capabilities of this object as a proxy. | | WasAProxyFlag | Integer | Was-a-proxy flag. Set to 1 if class was not loaded when this DXF file was created, and 0 otherwise. | | IsAnEntityFlag | Integer | Is-an-entity flag. Set to 1 if class was derived from the AcDbEntity class and can reside in the BLOCKS or ENTITIES section. If 0, instances may appear only in the OBJECTS section. |
The code below lists the contents of the CLASSES section of e DXF file:
Dim Class as Object
With DXFReader1
For Each Class In .Classes
Printer.Print Class.RecordName
Next Class
End With
See also the AddClass method.
|
|
Data Type
|
Collection
|