Macro Remove parametric history/cs: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
mNo edit summary
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{Macro/cs
<div class="mw-translate-fuzzy">
|Name=Remove parametric history
{{Macro/cs|Icon=Text-x-python|Name=Remove parametric history|Name/cs=Remove parametric history|Description=Odebere všechny parametrické asociace z objektu ponechajíc ho jako osamocené těleso|Author=Yorik|Version=0.1|Date=2011-08-01}}
|Icon=Macro_Remove_parametric_history.png
</div>
|Translate=Remove parametric history
|Description=Odebere všechny parametrické asociace z objektu ponechajíc ho jako osamocené těleso
|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]
}}


==Popis==
==Popis==
Line 9: Line 17:
Před a po:
Před a po:


[[File:RPH_before.png]]
<div class="mw-translate-fuzzy">
[[File:RPH_before.png|left]] [[File:RPH_after.png]] {{clear}}
</div>


[[File:RPH_after.png]]
[[File:RPH_after.png]]


==Script==
==Script==

ToolBar Icon [[Image:Macro_Remove_parametric_history.png]]


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

Revision as of 10:21, 7 July 2019

Other languages:

Remove parametric history

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

Version macro : 0.1
Date last modification : 2011-08-01
FreeCAD version : All
Download : ToolBar Icon
Autor: Yorik
Autor
Yorik
Download
ToolBar Icon
Odkazy
Verze
0.1
Datum poslední úpravy
2011-08-01
Verze FreeCAD
All
Výchozí zástupce
None
Viz též
None

Popis

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

Před a po:

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