API Reference > OdDb Classes > OdDbObject Class > OdDbObject Methods > OdDbObject::addPersistentReactor Method
OdDbObject::addPersistentReactor Method
Syntax
C++
virtual void addPersistentReactor(const OdDbObjectId& objId);
Parameters 
Description 
const OdDbObjectId& objId 
[in] Object ID of the persistent reactor. 

Adds the specified persistent reactor to this object's reactor list. 

 

An object must be open OdDb::kForWrite in order to add a persistent reactor. 

If the persistent reactor does not have an owner, it isn't saved with the drawing. Non-graphical objects used as persistent reactors are typically stored in a dictionary in the Named Objects Dictionary or in an extension dictionary associated with some object.

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