DXF Group Codes
![]() |
![]() ![]() |
The following table shows group codes that apply to virtually all graphical objects. Some of the group codes shown here are included with an entity definition only if the entity has nondefault values for the property. When you refer to the group codes by entity type, which lists the codes associated with specific entities, keep in mind that the codes shown here are also present.
When a group is omitted, its default value upon input (when using DXFIN) is indicated in the third column. If the value of a group code is equal to the default, it is omitted upon output (when using DXFOUT).
Group codes that apply to all graphical objectsGroup code |
Description |
If omitted, defaults to... |
-1 |
APP: entity name (changes each time |
Not omitted |
0 |
Entity type |
Not omitted |
5 |
Handle |
Not omitted |
102 |
Start of application defined group "{application_name". For example, "{ACAD_REACTORS" indicates the start |
no default |
application-defined codes |
Codes and values within the 102 groups are application-defined. |
no default |
102 |
End of group, "}" |
no default |
100 |
Subclass marker (AcDbEntity) |
Not omitted |
67 |
Absent or zero indicates entity is in model space. One indicates entity is in paper space. (optional) |
0 |
8 |
Layer name |
Not omitted |
6 |
Linetype name (present if not BYLAYER). |
BYLAYER |
62 |
Color number (present if not BYLAYER). Zero indicates the BYBLOCK (floating) color. 256 indicates BYLAYER. A negative value indicates that the layer is turned off. (optional) |
BYLAYER |
48 |
Linetype scale (optional) |
1.0 |
60 |
Object visibility (optional): |
0 |
The following table shows the group codes that are output if persistent reactors have been attached to an entity.
ACAD_REACTORS recordsGroup code | Description |
102 |
"{ACAD_REACTORS" indicates the start of the AutoCAD persistent reactors group |
330 |
Soft pointer ID/handle to owner dictionary |
102 |
End of group, "}" |
The following table shows the group codes that are output if an extension dictionary has been attached to an entity.
ACAD_XDICTIONARY recordsGroup code | Description |
102 |
"{ACAD_XDICTIONARY" indicates the start of an extension dictionary group |
360 |
Hard owner ID/handle to owner dictionary |
102 |
End of group, "}" |
Note Do not write programs that rely on the order shown in these DXF code tables. Although these tables show the order of group codes as they usually appear, the order can change under certain conditions or in a future AutoCAD release. The code that controls an entity should be driven by a case (switch) or a table so that it can process each group correctly even if the order is unexpected.