Table of Contents

Class DxfViewportTableRecord

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

A tiled viewport of model space, as AutoCAD's ViewportTableRecord, read from its VPORT record: the snap and the grid AutoCAD keeps there for the drawing, SNAPMODE, GRIDMODE, SNAPUNIT, GRIDUNIT, SNAPBASE, SNAPANG, SNAPSTYL, SNAPISOPAIR, GRIDDISPLAY and GRIDMAJOR of the *Active viewport.

public sealed class DxfViewportTableRecord : DxfSymbolTableRecord
Inheritance
DxfViewportTableRecord
Inherited Members

Remarks

AutoCAD 2021 opened a drawing whose *Active has the groups 75 and 76 of 1, 14 and 24 of 2.5 and 5, 15 and 25 of 10 and 20, 13 and 23 of 1 and 2, 50 of 15, 60 of 5 and 61 of 7 with SNAPMODE 1, GRIDMODE 1, SNAPUNIT (2.5, 5), GRIDUNIT (10, 20), SNAPBASE (1, 2), SNAPANG 15 degrees, GRIDDISPLAY 5 and GRIDMAJOR 7; one with none of 60 and 61 with GRIDDISPLAY 3 and GRIDMAJOR 5, which these properties give too. A setter writes its groups in place, every other group kept, so that the drawing saved keeps the value, as AutoCAD saves it; a setter given the value its getter gives changes nothing.

Properties

GridDisplay

Gets or sets how the grid is shown (group 60), as AutoCAD's GRIDDISPLAY: 1 beyond the limits, 2 adaptive, 4 subdivided below its spacing when zoomed in, 8 following the dynamic UCS; 3 where the record gives none, as AutoCAD 2021 reads such a drawing. The group came with R2007 (AC1021).

GridEnabled

Gets or sets whether the grid is shown (group 76 of 1), as AutoCAD's GridEnabled and GRIDMODE; off where the record gives none.

GridIncrements

Gets or sets the spacing of the grid across and up (groups 15 and 25), as AutoCAD's GridIncrements and GRIDUNIT; 10 by 10 where the record gives none. Nought along an axis takes the snap's spacing there, as GRIDUNIT of nought does.

GridMajor

Gets or sets how many minor lines of the grid go to a major one (group 61), as AutoCAD's GridMajor and GRIDMAJOR; 5 where the record gives none, as AutoCAD 2021 reads such a drawing. The group came with R2007 (AC1021).

IsometricSnapEnabled

Gets or sets whether the snap is isometric (group 77 of 1), as AutoCAD's IsometricSnapEnabled and SNAPSTYL of 1; rectangular where the record gives none.

SnapAngle

Gets or sets the angle the snap and the grid are turned by (group 50, written in degrees), as AutoCAD's SnapAngle and SNAPANG, in radians; nought where the record gives none.

SnapBase

Gets or sets the point the snap and the grid are laid from (groups 13 and 23), as AutoCAD's SnapBase and SNAPBASE; the origin where the record gives none.

SnapEnabled

Gets or sets whether the snap is on (group 75 of 1), as AutoCAD's SnapEnabled and SNAPMODE; off where the record gives none.

SnapIncrements

Gets or sets the spacing of the snap across and up (groups 14 and 24), as AutoCAD's SnapIncrements and SNAPUNIT; 10 by 10 where the record gives none.

SnapPair

Gets or sets the isometric plane the snap works in (group 78), as AutoCAD's SnapPair and SNAPISOPAIR: 0 left, 1 top, 2 right; 0 where the record gives none.