API Reference > OdDb Classes > OdDbLayout Class > OdDbLayout Methods > OdDbLayout::getViewportArray Method
OdDbLayout::getViewportArray Method
Syntax
C++
OdDbObjectIdArray getViewportArray() const;

Returns an array of OdDbObjectIds of all the OdDbViewports that exist in the Paper Space layout. The first ID in the list will be the overall Paper Space viewport. If the list returned is empty, then this layout is Model Space or has never been switched to (activated).

Copyright © 2002–2021. Open Design Alliance. All rights reserved.