API Reference > OdDb Classes > OdDbObjectContextHatchPE Class > OdDbObjectContextHatchPE Methods > OdDbObjectContextHatchPE::addContext Method
OdDbObjectContextHatchPE::addContext Method
Syntax
C++
virtual OdResult addContext(OdDbObject* pObject, const OdDbObjectContext& ctx) const;
Parameters 
Description 
OdDbObject* pObject 
[in] Pointer to the object.  
context 
[in] Name of the context to add. 

Returns eOk if successful, or an appropriate error code if not.

Adds a context to the specified object. 

 

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