Makro Odebrat historii parametrů

From FreeCAD Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
This page is a translated version of the page Macro Remove parametric history and the translation is 100% complete.
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