Description
This .NET class wraps the AcDbViewport ObjectARX class.
The Viewport class represents the VIEWPORT entity within AutoCAD.
Class Hierarchy
Autodesk.AutoCAD.DatabaseServices.DBObject Autodesk.AutoCAD.DatabaseServices.Entity Autodesk.AutoCAD.DatabaseServices.Viewport
Visual Basic
Public Class Viewport Inherits Entity
C#
public class Viewport : Entity;
Notes
Do not derive from this class. Attempting to do so will cause your application to halt AutoCAD.
Most Viewport properties are reset to default values when the viewport is appended to a database. Therefore, you should always wait until you have added a new Viewport object to the database before you change its property values.