C++
AcDbObjectId acedGetCurViewportObjectId();
File
aced.h
Description
This function returns 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.