DXF Group Codes
CLASSES Section |
The group codes described in this section are found only in DXF files.
The CLASSES section holds the information for application-defined classes whose instances appear in the BLOCKS, ENTITIES, and OBJECTS sections of the database. It is assumed that a class definition is permanently fixed in the class hierarchy. All fields are required.
The following is an example of the CLASSES section of a DXF file: 0 |
Beginning of CLASSES section |
0 |
Repeats for each entry |
0 |
End of CLASSES section |
Each entry in the CLASSES section contains the groups described in the following table.
CLASSES section group codesGroup code | Description |
0 |
Record type (CLASS). Identifies beginning of a CLASS record. |
1 |
Class DXF record name. These should always be unique. |
2 |
C++ class name. Used to bind with software that defines object class behavior. These are always unique. |
3 |
Application name. Posted in Alert box when a class definition listed in this section is not currently loaded. |
90 |
Proxy capabilities flag. Bit coded value that indicates the capabilities of this object as a proxy. |
280 |
Was-a-proxy flag. Set to 1 if class was not loaded when this DXF file was created, and 0 otherwise. |
281 |
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. |
AutoCAD registers the classes listed in the following table (note that this may not be a complete list of the classes found in a DXF file depending on the applications currently in use on your system).
Default class valuesDXF Record Name Code 1 |
C++ Class Name Code 2 |
Code 90 |
Code 280 |
Code 281 |
DICTIONARYVAR |
AcDbDictionaryVar |
0 |
0 |
0 |
HATCH |
AcDbHatch |
0 |
0 |
1 |
IDBUFFER |
AcDbIdBuffer |
0 |
0 |
0 |
IMAGE |
AcDbRasterImage |
127 |
0 |
1 |
IMAGEDEF |
AcDbRasterImageDef |
0 |
0 |
0 |
IMAGEDEF_REACTOR |
AcDbRasterImageDefReactor |
1 |
0 |
0 |
LAYER_INDEX |
AcDbLayerIndex |
0 |
0 |
0 |
LWPOLYLINE |
AcDbPolyline |
0 |
0 |
1 |
OBJECT_PTR |
CAseDLPNTableRecord |
1 |
0 |
0 |
OLE2FRAME |
AcDbOle2Frame |
0 |
0 |
1 |
RASTERVARIABLES |
AcDbRasterVariables |
0 |
0 |
0 |
SORTENTSTABLE |
AcDbSortentsTable |
0 |
0 |
0 |
SPATIAL_INDEX |
AcDbSpatialIndex |
0 |
0 |
0 |
SPATIAL_FILTER |
AcDbSpatialFilter |
0 |
0 |
0 |