C++
AcDbObjectId acedViewportIdFromNumber( int nVpNum );
File
aced.h
Description
Returns the objectID that corresponds to the viewport number specified by nVpNum. This number is the same as that reported by the CVPORT AutoCAD system variable. For example, the Paper Space viewport is number 1.
In tilemode the returned ID is obtained from a viewport table record. In layout mode it is obtained from a viewport entity.
Returns null if no documents are open, or if the number does not correspond to a valid viewport.
Parameters
Parameters | Description |
---|---|
nVpNum | Input viewport number; must be the value of the CVPORT system variable. |