Macro Remove parametric history/it: Difference between revisions
Renatorivo (talk | contribs) (heading) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
{{Macro|Icon=Text-x-python|Name=Remove parametric history|Description=This will remove all parametric associativity from an object, leaving it as a "dumb" shape|Author=Yorik}} |
|||
==Rimuovere associazioni== |
|||
This will remove all parametric associativity from an object, leaving it as a "dumb" shape |
|||
{{Macro/it|Icon=Text-x-python|Name=Remove parametric history|Name/it=Remove parametric history|Description=Questa operazione rimuove tutte le associazioni parametriche da un oggetto, lasciandolo come ''muto''|Author=Yorik}} |
|||
<syntaxhighlight> |
|||
newShape = originalObject.Shape.copy() |
newShape = originalObject.Shape.copy() |
||
newName = FreeCAD.ActiveDocument.ActiveObject.Name |
newName = FreeCAD.ActiveDocument.ActiveObject.Name |
||
Line 9: | Line 11: | ||
newObject.Shape = newShape |
newObject.Shape = newShape |
||
</syntaxhighlight> |
|||
{{clear}} |
{{clear}} |
||
<languages/> |
|||
{{languages/it | {{en|Macro_Remove_parametric_history}} {{es|Macro_Remove_parametric_history/es}} {{fr|Macro_Remove_parametric_history/fr}} }} |
Revision as of 18:14, 24 December 2013
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 |
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 |
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