IAcadViewport
TeighaX Interface of a bounded area that displays some portion of a drawing's model space
Supported Platforms: Windows only
Object Inheritance
Members
These members are part of this object:
Methods- GetXData
- SetXData
- Delete
- GetExtensionDictionary
- Split
- GetGridSpacing
- SetGridSpacing
- GetSnapSpacing
- SetSnapSpacing
- SetView
Properties- Handle
- ObjectName
- ObjectID
- Application
- HasExtensionDictionary
- OwnerID
- Document
- Center
- Height
- Width
- Target
- Direction
- Name
- GridOn
- OrthoOn
- SnapBasePoint
- SnapOn
- SnapRotationAngle
- UCSIconOn
- UCSIconAtOrigin
- LowerLeftCorner
- UpperRightCorner
- ArcSmoothness
- GetXData()
Void GetXData([in] BSTR AppName, [out] Pointer Type XDataType, [out] Pointer Type XDataValue)
Returns the extended data (XData) associated with an object.
- SetXData()
Void SetXData([in] VARIANT XDataType, [in] VARIANT XDataValue)
Sets the extended data (XData) associated with an object.
- Delete()
Void Delete( )
Deletes a specified object.
- GetExtensionDictionary()
IAcadDictionary* GetExtensionDictionary( )
Returns the extension dictionary associated with an object.
- Split()
Void Split(AcViewportSplitTypeShort NumWins)
Splits a viewport into the given number of views
- GetGridSpacing()
Void GetGridSpacing([out] Pointer Type XSpacing, [out] Pointer Type YSpacing)
Gets the grid spacing for the viewport
- SetGridSpacing()
Void SetGridSpacing([in] Double XSpacing, [in] Double YSpacing)
Sets the grid spacing for the viewport
- GetSnapSpacing()
Void GetSnapSpacing([out] Pointer Type XSpacing, [out] Pointer Type YSpacing)
Gets the snap spacing for the viewport
- SetSnapSpacing()
Void SetSnapSpacing([in] Double XSpacing, [in] Double YSpacing)
Sets the snap spacing for the viewport
- SetView()
Void SetView([in] Pointer Type View)
Sets the view in a viewport to a saved view in the Views Collection object
- Handle [ReadOnly]
BSTR Handle( )
Returns the handle of an object.
- ObjectName [ReadOnly]
BSTR ObjectName( )
Returns the TeighaX class name of an object.
- ObjectID [ReadOnly]
LONG_PTR ObjectID( )
Returns the object ID of an object.
- Application [ReadOnly]
IDispatch* Application( )
Returns the Application object.
- HasExtensionDictionary [ReadOnly]
Boolean HasExtensionDictionary( )
Returns whether an object has an associated extension dictionary.
- OwnerID [ReadOnly]
LONG_PTR OwnerID( )
Returns the object ID of the parent object.
- Document [ReadOnly]
IDispatch* Document( )
Returns the drawing to which an object belongs.
- Center [ReadOnly]
VARIANT Center( )
Specifies the center of an arc, circle, ellipse, view, or viewport
- Height [ReadOnly]
Double Height( )
Height of the attribute, shape, text, or view toolbar or the main application window
- Width [ReadOnly]
Double Width( )
Specifies the width of the text boundary, view, image, toolbar, or main application window
- Target [ReadOnly]
VARIANT Target( )
Specifies the target point for the view or viewport
- Direction [ReadOnly]
VARIANT Direction( )
Specifies the viewing direction for a 3D visualization of the drawing
- Name [ReadOnly]
BSTR Name( )
Specifies the name of the object
- GridOn [ReadOnly]
Boolean GridOn( )
Specifies the status of the viewport grid
- OrthoOn [ReadOnly]
Boolean OrthoOn( )
Specifies the status of the Ortho mode for the viewport
- SnapBasePoint [ReadOnly]
VARIANT SnapBasePoint( )
Specifies the snap base point for the viewport
- SnapOn [ReadOnly]
Boolean SnapOn( )
Specifies the status of snap
- SnapRotationAngle [ReadOnly]
ACAD_ANGLE SnapRotationAngle( )
Specifies the snap rotation angle of the viewport relative to the current UCS
- UCSIconOn [ReadOnly]
Boolean UCSIconOn( )
Specifies if the UCS icon is on
- UCSIconAtOrigin [ReadOnly]
Boolean UCSIconAtOrigin( )
Specifies if the UCS icon is displayed at the origin
- LowerLeftCorner [ReadOnly]
VARIANT LowerLeftCorner( )
Gets the lower-left corner of the current active viewport
- UpperRightCorner [ReadOnly]
VARIANT UpperRightCorner( )
Gets the upper-right corner of the current active viewport
- ArcSmoothness [ReadOnly]
Integer ArcSmoothness( )
Specifies the smoothness of circles, arcs, and ellipses