VPORT
 
 
 

The following group codes apply to VPORT symbol table entries. The VPORT table is unique: it may contain several entries with the same name (indicating a multiple-viewport configuration). The entries corresponding to the active viewport configuration all have the name *ACTIVE. The first such entry describes the current viewport. In addition to the group codes described here, see Common Group Codes for Symbol Table Entries. For information about abbreviations and formatting used in this table, see Formatting Conventions in This Reference.

VPORT group codes

Group code

Description

100

Subclass marker (AcDbViewportTableRecord)

2

Viewport name

70

Standard flag values (bit-coded values):

16 = If set, table entry is externally dependent on an xref

32 = If both this bit and bit 16 are set, the externally dependent xref has been successfully resolved

64 = If set, the table entry was referenced by at least one entity in the drawing the last time the drawing was edited. (This flag is for the benefit of AutoCAD commands. It can be ignored by most programs that read DXF files and does not need to be set by programs that write DXF files)

10

Lower-left corner of viewport

DXF: X value; APP: 2D point

20

DXF: Y value of lower-left corner of viewport

11

Upper-right corner of viewport

DXF: X value; APP: 2D point

21

DXF: Y value of upper-right corner of viewport

12

View center point (in DCS)

DXF: X value; APP: 2D point

22

DXF: Y value of view center point (in DCS)

13

Snap base point (in DCS)

DXF: X value; APP: 2D point

23

DXF: Y value of snap base point (in DCS)

14

Snap spacing X and Y

DXF: X value; APP: 2D point

24

DXF: Y value of snap spacing X and Y

15

Grid spacing X and Y

DXF: X value; APP: 2D point

25

DXF: Y value of grid spacing X and Y

16

View direction from target point (in WCS)

DXF: X value; APP: 3D point

26, 36

DXF: Y and Z values of view direction from target point

(in WCS)

17

View target point (in WCS)

DXF: X value; APP: 3D point

27, 37

DXF: Y and Z values of view target point (in WCS)

42

Lens length

43

Front clipping plane (offset from target point)

44

Back clipping plane (offset from target point)

45

View height

50

Snap rotation angle

51

View twist angle

72

Circle sides

331 or 441

Soft or hard-pointer ID/handle to frozen layer objects; repeats for each frozen layers

70

Bit flags and perspective mode

1

Plot style sheet

281

Render mode:

0 = 2D Optimized (classic 2D)

1 = Wireframe

2 = Hidden line

3 = Flat shaded

4 = Gouraud shaded

5 = Flat shaded with wireframe

6 = Gouraud shaded with wireframe

All rendering modes other than 2D Optimized engage the new 3D graphics pipeline. These values directly correspond to the SHADEMODE command and the AcDbAbstractViewTableRecord::RenderMode enum

71

View mode (see VIEWMODE system variable)

74

UCSICON setting

110

UCS origin

DXF: X value; APP: 3D point

120, 130

DXF: Y and Z values of UCS origin

111

UCS X-axis

DXF: X value; APP: 3D vector

121, 131

DXF: Y and Z values of UCS X-axis

112

UCS Y-axis

DXF: X value; APP: 3D vector

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

0 = UCS is not orthographic

1 = Top; 2 = Bottom

3 = Front; 4 = Back

5 = Left; 6 = Right

146

Elevation

170

Shade plot setting

61

Major grid lines

332

Soft-pointer ID/handle to background object (optional)

333

Soft-pointer ID/handle to shade plot object (optional)

348

Hard-pointer ID/handle to visual style object (optional)

292

Default Lighting On flag

282

Default Lighting type

0 = One distant light

1 = Two distant lights

141

Brightness

142

Contrast

63, 421, 431

Ambient color (only output when non-black)