Macro Remove parametric history/cs: Difference between revisions
(Updating to match new version of source page) |
Renatorivo (talk | contribs) (Created page with "left File:RPH_after.png {{clear}}") |
||
Line 1: | Line 1: | ||
{{Macro|Icon=Text-x-python|Name=Remove parametric history|Description=Odebere všechny parametrické asociace z objektu ponechajíc ho jako osamocené těleso|Author=Yorik}} |
{{Macro|Icon=Text-x-python|Name=Remove parametric history|Description=Odebere všechny parametrické asociace z objektu ponechajíc ho jako osamocené těleso|Author=Yorik}} |
||
==Description== |
|||
Odebere všechny parametrické asociace z objektu ponechajíc ho jako osamocené těleso |
|||
This will remove all parametric associativity from an object, leaving it as a "dumb" shape |
|||
Line 7: | Line 8: | ||
[[File:RPH_before.png|left]] |
[[File:RPH_before.png|left]] [[File:RPH_after.png]] {{clear}} |
||
{{clear}} |
|||
==Script== |
==Script== |
||
'''Remove parametric history.FCMacro''' |
'''Remove parametric history.FCMacro''' |
Revision as of 08:47, 24 May 2014
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 |
Macros recipes How to install macros How to customize toolbars |
Macro Version |
1.0 |
Date last modified |
None |
FreeCAD Version(s) |
None |
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