API Reference > OdDg Classes > OdDgElement Class > OdDgElement Methods > OdDgElement::addPersistentReactor Method
OdDgElement::addPersistentReactor Method
Syntax
C++
virtual void addPersistentReactor(const OdDgElementId& elmId);
Parameters 
Description 
const OdDgElementId& elmId 
[in] Element ID of the persistent reactor. 

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

 

An element must be open OdDg::kForWrite in order to add a persistent reactor. 

If the persistent reactor does not have an owner, it isn't saved with the drawing.

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