Macro Remove parametric history: Difference between revisions
(Marked this version for translation) |
(icon) |
||
Line 4: | Line 4: | ||
{{Macro |
{{Macro |
||
|Name=Remove parametric history |
|Name=Remove parametric history |
||
|Icon=Macro_Remove_parametric_history.png |
|||
|Description=This will remove all parametric associativity from an object, leaving it as a "dumb" shape |
|Description=This will remove all parametric associativity from an object, leaving it as a "dumb" shape |
||
|Author=Yorik |
|Author=Yorik |
||
|Version=1.0 |
|Version=1.0 |
||
|Date=2011-08-01 |
|Date=2011-08-01 |
||
|FCVersion=All |
|||
|Download=[https://www.freecadweb.org/wiki/images/b/b7/Macro_Remove_parametric_history.png ToolBar Icon] |
|||
}} |
}} |
||
Line 24: | Line 27: | ||
==Script== <!--T:5--> |
==Script== <!--T:5--> |
||
</translate> |
</translate> |
||
ToolBar Icon [[Image:Macro_Remove_parametric_history.png]] |
|||
'''Remove parametric history.FCMacro''' |
'''Remove parametric history.FCMacro''' |
Revision as of 20:08, 6 July 2019
Description |
---|
This will remove all parametric associativity from an object, leaving it as a "dumb" shape Macro version: 1.0 Last modified: 2011-08-01 FreeCAD version: All Download: ToolBar Icon Author: Yorik |
Author |
Yorik |
Download |
ToolBar Icon |
Links |
Macros recipes How to install macros How to customize toolbars |
Macro Version |
1.0 |
Date last modified |
2011-08-01 |
FreeCAD Version(s) |
All |
Default shortcut |
None |
See also |
None |
Description
This will remove all parametric associativity from an object, leaving it as a "dumb" shape
Before and after:
Script
Remove parametric history.FCMacro
originalObject = FreeCAD.ActiveDocument.ActiveObject
newShape = originalObject.Shape.copy()
newName = FreeCAD.ActiveDocument.ActiveObject.Name
FreeCAD.ActiveDocument.removeObject(newName)
newObject = FreeCAD.ActiveDocument.addObject("Part::Feature",newName)
newObject.Shape = newShape