API Reference > OdDbRoot Classes > OdDbBaseDatabasePE Class > OdDbBaseDatabasePE Methods > OdDbBaseDatabasePE::findLayoutByViewport Method
OdDbBaseDatabasePE::findLayoutByViewport Method
Syntax
C++
inline OdRxObjectPtr findLayoutByViewport(OdDbBaseDatabase* db, OdDbStub* pViewportId);
Parameters 
Description 
OdDbBaseDatabase* db 
[in] A pointer to a database.  
OdDbStub* pViewportId 
[in] A viewport identifier. 

Returns a layout related with a specified viewport from the specified database.

If a layout with the specified viewport is not found, a NULL pointer is returned.

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