Makro Odebrat historii parametrů

From FreeCAD Documentation
Revision as of 17:56, 6 February 2014 by Honza32 (talk | contribs)

File:Text-x-python Remove parametric history

Description
Odebere všechny parametrické asociace z objektu ponechajíc ho jako osamocené těleso

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

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


 newShape = originalObject.Shape.copy()
 newName = FreeCAD.ActiveDocument.ActiveObject.Name
 FreeCAD.ActiveDocument.removeObject(newName)
 newObject = FreeCAD.ActiveDocument.addObject("Part::Feature",newName)
 newObject.Shape = newShape
Other languages: