Chapter 6 -- ENTITIES Section
VIEWPORT
|
The following group codes apply to viewport entities. In addition to the group codes described here, see "Common Group Codes for Entities." For information about abbreviations and formatting used in this table, see "Formatting Conventions in This Reference."
Viewport group codes| Group codes | Description |
100 |
Subclass marker (AcDbViewport) |
10 |
Center point (in WCS) |
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. |
12 |
View center point (in DCS) |
22 |
DXF: View center point Y value (in DCS) |
13 |
Snap base point |
23 |
DXF: Snap base point Y value |
14 |
Snap spacing |
24 |
DXF: Snap spacing Y value |
15 |
Grid spacing |
25 |
DXF: Grid spacing Y value |
16 |
View direction vector (in WCS) DXF: X value; APP: 3D vector |
26, 36 |
DXF: Y and Z values of view direction vector (in WCS) |
17 |
View target point (in WCS) DXF: X value; APP: 3D vector |
27, 37 |
DXF: Y and Z values of view target point (in WCS) |
42 |
Perspective lens length |
43 |
Front clip plane Z value |
44 |
Back clip plane Z value |
45 |
View height (in model space units) |
50 |
Snap angle |
51 |
View twist angle |
72 |
Circle zoom percent |
341 |
Frozen layer object ID/handle (multiple entries may exist) (optional) |
90 |
Viewport status bit coded flags:
|
340 |
Hard-pointer ID/handle to entity that serves as the viewport's clipping boundary (only present if viewport is non-rectangular) |
1 |
Plot style sheet name assigned to this viewport |
281 |
Render mode: |
71 |
UCS per viewport flag: |
74 |
Display UCS icon at UCS origin flag: |
110 |
UCS origin |
120, 130 |
DXF: Y and Z values of UCS origin |
111 |
UCS X-axis |
121, 131 |
DXF: Y and Z values of UCS X-axis |
112 |
UCS Y-axis |
122, 132 |
DXF: Y and Z values of UCS Y-axis |
345 |
ID/handle of AcDbUCSTableRecord if UCS is a named UCS. If not present, then UCS is unnamed. |
346 |
ID/handle of AcDbUCSTableRecord of base UCS if UCS is orthographic (79 code is non-zero). If not present and 79 code is non-zero, then base UCS is taken to be WORLD. |
79 |
Orthographic type of UCS |
146 |
Elevation |
NOTE The ZOOM XP factor is calculated with the following formula: group_41 / 2nd_group_1040 (or pspace_height / mspace_height).