Description
The viewport ID as a System.IntPtr. This is the same value as is available through the Autodesk.AutoCAD.GraphicsInterface.Viewport.ViewportId property. This is an ID that has no relation to the AutoCAD CVPORT system variable. The ID returned by this function is unique for every viewport in AutoCAD (including Paper Space AcDbViewports and tiled view viewports, AcDbViewportTableRecords), much the way a handle is for an entity.
Visual Basic
Public Property AcadWindowId() As Integer
C#
public int AcadWindowId;
Conditions
Read-only