Macro Remove parametric history/it: Difference between revisions

From FreeCAD Documentation
m (Created page with "Prima et dopo :")
(Updating to match new version of source page)
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
{{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}}
{{Macro/it
|Name=Remove parametric history
|Icon=Macro_Remove_parametric_history.png
|Translate=Rimozione della cronologia
|Description=Questa operazione rimuove tutte le associazioni parametriche da un oggetto, lasciandolo come ''muto''
|Author=Yorik
|Version=0.1
|Date=2011-08-01
|FCVersion=All
|Download=[https://www.freecadweb.org/wiki/images/b/b7/Macro_Remove_parametric_history.png ToolBar Icon]
}}


==Descrizione==
==Descrizione==


Questa operazione rimuove tutte le associazioni parametriche da un oggetto, lasciandolo come ''muto''
Questa operazione rimuove tutte le associazioni parametriche da un oggetto, lasciandolo come ''muto''.


Prima e dopo :


[[File:RPH_before.png]]
Prima et dopo :


[[File:RPH_after.png]]


[[File:RPH_before.png|left]] [[File:RPH_after.png]]
{{clear}}
==Script==
==Script==

ToolBar Icon [[Image:Macro_Remove_parametric_history.png]]

'''Remove parametric history.FCMacro'''
'''Remove parametric history.FCMacro'''

<syntaxhighlight>
{{MacroCode|code=


originalObject = FreeCAD.ActiveDocument.ActiveObject
originalObject = FreeCAD.ActiveDocument.ActiveObject
Line 22: Line 37:
newObject.Shape = newShape
newObject.Shape = newShape


}}
</syntaxhighlight>
{{clear}}
{{clear}}
<languages/>

Latest revision as of 11:13, 23 May 2020

Rimozione della cronologia

Descrizione
Questa operazione rimuove tutte le associazioni parametriche da un oggetto, lasciandolo come muto

Versione macro: 0.1
Ultima modifica: 2011-08-01
Versione FreeCAD: All
Download: ToolBar Icon
Autore: Yorik
Autore
Yorik
Download
ToolBar Icon
Link
Versione macro
0.1
Data ultima modifica
2011-08-01
Versioni di FreeCAD
All
Scorciatoia
Nessuna
Vedere anche
Nessuno

Descrizione

Questa operazione rimuove tutte le associazioni parametriche da un oggetto, lasciandolo come muto.

Prima e dopo :

Script

ToolBar Icon

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