The most proper way is still to have a boolean flag in a document object which switches parametric on and off. If it's off we simply do not call its execute() method any more. This approach shouldn't have any side-effects because it doesn't change anything on the dependencies of the objects to each other.
I'll make a feature request...
Mirroring parts
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: Mirroring parts
Werner did this already a long time ago, its in the Document.cpp
Its called if a object is erased and search all LinkProperies pointing on this object and set them to NULL.
But I'm not quite sure this method work for python objects in the document !?
Code: Select all
void Document::breakDependency(DocumentObject* pcObject, bool clear)
But I'm not quite sure this method work for python objects in the document !?
Stop whining - start coding!