Macro Remove parametric history

From FreeCAD Documentation
Revision as of 19:47, 25 December 2012 by Mario52 (talk | contribs) (ajout de "|Icon=Text-x-python")

File:Text-x-python Remove parametric history

Description
This will remove all parametric associativity from an object, leaving it as a "dumb" shape

Author: Yorik
Author
Yorik
Download
None
Links
Macro Version
1.0
Date last modified
None
FreeCAD Version(s)
None
Default shortcut
None
See also
None

newShape = originalObject.Shape.copy()
newName = FreeCAD.ActiveDocument.ActiveObject.Name
FreeCAD.ActiveDocument.removeObject(newName)
newObject = FreeCAD.ActiveDocument.addObject("Part::Feature",newName)
newObject.Shape = newShape
Available translations of this page: