API Reference > OdDb Classes > OdDbObjectContextCollection Class > OdDbObjectContextCollection Methods > OdDbObjectContextCollection::currentContext Method
OdDbObjectContextCollection::currentContext Method
Syntax
C++
virtual OdDbObjectContextPtr currentContext(const OdDbObject* pRequestingObject) const = 0;
Parameters 
Description 
const OdDbObject* pRequestingObject 
[in] Optional pointer to the object for which you want the current context. 

Returns a pointer to the current context of the context collection. 

 

If no current context exists, Null is returned.

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