Table of Contents

Class DxfViewTableRecord

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

A named view of a DXF file, as AutoCAD's ViewTableRecord, read from its VIEW record: its name, the point at its centre and its height and width in the units of its space, whether it is of paper space, and the layer state its layer snapshot is kept in.

public sealed class DxfViewTableRecord : DxfSymbolTableRecord
Inheritance
DxfViewTableRecord
Inherited Members

Remarks

AutoCAD 2021's -VIEW Window of the corners (10, 20) and (110, 80) saves the view of the centre (60, 50), 100 wide and 60 high. A view of a file is changed by its setters, its record written anew, every other group kept; a setter given the value its getter gives changes nothing. A view made in code is of model space, about the origin, until it is given others, and is written when it is added to a DxfViewTable.

Constructors

DxfViewTableRecord()

Initializes a view made in code, of model space about the origin, to be added to a DxfViewTable with its Name given.

Properties

CenterPoint

Gets or sets the point at the centre of the view (groups 10, 20), as AutoCAD's CenterPoint, in the display coordinates of its space.

Height

Gets or sets the height of the view (group 40), as AutoCAD's Height, in the units of its space.

IsPaperspaceView

Gets or sets whether the view is of paper space (flag 1 of group 70), as AutoCAD's IsPaperspaceView: a layout view, which -VIEW ? lists with a P.

LayerState

Gets or sets the layer state the view's layer snapshot is kept in, as AutoCAD's LayerState: the group 302 of the XRECORD ADSK_XREC_VTRVIEWINFO of its extension dictionary, ACAD_VIEWS_ and the view's name as AutoCAD 2021 names the hidden state it saves; empty where the view keeps none.

Layout

Gets or sets the layout a view of paper space was saved in, as AutoCAD's Layout: the handle in group 330 of the XRECORD ADSK_XREC_VTRVIEWINFO of its extension dictionary. Null where the view names none, as a view of model space does not, or the layout is gone.

Target

Gets the target of the view (groups 12, 22, 32), as AutoCAD's Target, in world coordinates; the origin where the record gives none.

ViewDirection

Gets the direction the view looks from towards its target (groups 11, 21, 31), as AutoCAD's ViewDirection; Z where the record gives none.

ViewTwist

Gets the twist of the view about its direction (group 50), as AutoCAD's ViewTwist, in radians.

Width

Gets or sets the width of the view (group 41), as AutoCAD's Width, in the units of its space.

Methods

Erase()

Erases the view from its table, as AutoCAD's Erase of a named view: its extension dictionary erased with what it holds, its VIEW record taken out and the table's count lowered by one.