Makro FaceToSketch

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 FaceToSketch and the translation is 60% complete.
Outdated translations are marked like this.
Other languages:

FaceToSketch

Popis
Konvertuje povrch do náčrtu bez vazeb.

Version macro : 1.0
Date last modification : 2013-12-23
FreeCAD version : All
Download : ToolBar Icon
Autor: Jreinhardt
Autor
Jreinhardt
Download
ToolBar Icon
Odkazy
Verze
1.0
Datum poslední úpravy
2013-12-23
Verze FreeCAD
All
Výchozí zástupce
None
Viz též
None

Description

Toto makro rozloží tvar funkcí Draft Downgrade a transformuje povrch vybraný v náčrtu bez vazeb s možností dalších úprav.

Script

ToolBar Icon

Macro_FaceToSketch.FCMacro

import Draft
  
wires,_faces = Draft.downgrade(FreeCADGui.Selection.getSelection(),delete=True)
  
sketch = Draft.makeSketch(wires[0:1])
for wire in wires[1:]:
    Draft.makeSketch([wire],addTo=sketch)
  
for wire in wires:
    FreeCAD.ActiveDocument.removeObject(wire.Name)