DXF Group Codes
ENTITIES Section |
VIEWPORT
|
The following group codes apply to viewport entities.
Viewport group codeGroup codes | Description |
100 |
Subclass marker (AcDbViewport) |
10 |
Center point (in WCS). DXF: X value; APP: 3D point |
20, 30 |
DXF: Y and Z values of center point (in WCS) |
40 |
Width in paper space units |
41 |
Height in paper space units. |
68 |
Viewport status field: |
69 |
Viewport ID. Changes each time a drawing is opened. Never saved, except for the paper space viewport, which is always 1. |
The following table lists the xdata that can be attached to viewport entities. In contrast to normal entity data, the order of the extended group codes is important. Also group codes can appear multiple times.
Viewport xdata group codesGroup codes | Description |
1001 |
Application ID ("ACAD"). This begins a section of xdata that describes the viewport. |
1000 |
Begin viewport data. This field is always the string MVIEW. Other data groups may appear in the future. |
1002 |
Begin window descriptor data. This field always is the string. |
1070 |
Extended data version number. Always the integer 16. |
1010 |
View target point (in WCS). DXF: X value; APP: 3D point |
1020,1030 |
DXF: Y and Z values of view target point (in WCS) |
1010 |
View direction vector (in WCS). |
1020,1030 |
DXF: Y and Z values of view direction vector (in WCS) |
1040 |
View twist angle |
1040 |
View height |
1040 |
View center point X value (in DCS) |
1040 |
View center point Y value (in DCS) |
1040 |
Perspective lens length |
1040 |
Front clip plane Z value |
1040 |
Back clip plane Z value |
1070 |
View mode |
1070 |
Circle zoom |
1070 |
Fast zoom setting |
1070 |
UCSICON setting |
1070 |
Snap ON/OFF |
1070 |
Grid ON/OFF |
1070 |
Snap style |
1070 |
Snap ISOPAIR |
1040 |
Snap angle |
1040 |
Snap base point UCS X value of coordinate |
1040 |
Snap base point UCS Y value of coordinate |
1040 |
Snap X spacing |
1040 |
Snap Y spacing |
1040 |
Grid X spacing |
1040 |
Grid Y spacing |
1070 |
Hidden in plot flag |
1002 |
Begin frozen layer list (possibly empty). This field always is the string "{". |
1003 |
The names of layers frozen in this viewport. This list may include xref-dependent layers. Any number of 1003 groups may appear here. |
1002 |
End frozen layer list. This field always is the string "}". |
1002 |
End viewport data. This field always is the string "}". |
Note The ZOOM XP factor is calculated with the following formula: group_41 / 2nd_group_1040 (or pspace_height / mspace_height).