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
Site Admin
Posts: 14620
Joined: Thu Feb 19, 2009 10:32 am

Re: Mirroring parts

Postby wmayer » Mon Jul 18, 2011 8:41 am

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
Site Admin
Posts: 3369
Joined: Sun Feb 15, 2009 5:29 pm
Location: Ulm, Germany
Contact:

Re: Mirroring parts

Postby jriegel » Mon Jul 18, 2011 8:42 am

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
Site Admin
Posts: 14620
Joined: Thu Feb 19, 2009 10:32 am

Re: Mirroring parts

Postby wmayer » Mon Jul 18, 2011 8:46 am