Share

Viewport.Number Property

Description

Accesses the viewport ID number. This is the number that is reported by the AutoCAD CVPORT system variable when the viewport is the current viewport in the AutoCAD editor. If the viewport is inactive, -1 is returned.

This value is not saved with the drawing, and changes each time the drawing is opened.

Visual Basic

Public Property Number() As Integer

C#

public int Number;

Conditions

Read-only

Links

Viewport Class, Autodesk.AutoCAD.DatabaseServices Namespace

Was this information helpful?