API Reference > OdDb Classes > OdDbViewport Class > OdDbViewport Methods > OdDbViewport::setModelView Method
OdDbViewport::setModelView Method
Syntax
C++
void setModelView(const OdDbXrefObjectId & objId);
Parameters 
Description 
const OdDbXrefObjectId & objId 
[in] External reference object identifier that corresponds to the model view in the exterally referenced database. 

Associates a model view (defined by the passed external reference 'objId') with this viewport. 

 

This method can throw the following errors:

  • eInvalidObjectId - The 'objId' is not a valid OdDbObjectId in this database.
  • eInvalidXrefObjectId - The 'objId' is not a valid OdDbXrefObjectId.
  • eUnableToSetViewAssociation - Application cannot associate the view with this viewport.
Copyright © 2002–2021. Open Design Alliance. All rights reserved.