C++
ACCORE_PORT AcDbObjectId acedGetCurViewportObjectId();
File
aced.h
Description
Gets the objectId of the current AcDbViewport entity (it does not work with AcDbViewportTableRecords). If TILEMODE is 1, then there is no AcDbViewport entity current so it will return AcDbObjectId::kNull.
Returns
Returns the object ID of the current viewport entity, else a null object ID.
Previous Declaration
AutoCAD 2025 and Earlier
AcDbObjectId acedGetCurViewportObjectId();