Mirroring parts

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
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!
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Mirroring parts

Post by wmayer »

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...
User avatar
jriegel
Founder
Posts: 3369
Joined: Sun Feb 15, 2009 5:29 pm
Location: Ulm, Germany
Contact:

Re: Mirroring parts

Post by jriegel »

Werner did this already a long time ago, its in the Document.cpp

Code: Select all

void Document::breakDependency(DocumentObject* pcObject, bool clear)
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 !?
Stop whining - start coding!
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Mirroring parts

Post by wmayer »

Post Reply