Share

acedActiveViewportId

C++

ACCORE_PORT AcDbObjectId acedActiveViewportId();

File

aced.h

Description

Gets the object ID of the active viewport in the editor. In tilemode, it returns the ID is of a viewport table record. In layout mode, returns the object ID of a viewport entity .

Returns

Returns the object ID of the viewport that is currently active in the editor, else a null object ID if no document is open.

Previous Declaration

AutoCAD 2025 and Earlier

AcDbObjectId acedActiveViewportId();

Was this information helpful?