Macro Da Faccia a Schizzo

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 100% complete.
Other languages:

Da Faccia a Schizzo

Descrizione
Converte la faccia selezionata in uno Sketch senza vincoli.

Versione macro: 1.0
Ultima modifica: 2013-12-23
Versione FreeCAD: All
Download: ToolBar Icon
Autore: Jreinhardt
Autore
Jreinhardt
Download
ToolBar Icon
Link
Versione macro
1.0
Data ultima modifica
2013-12-23
Versioni di FreeCAD
All
Scorciatoia
Nessuna
Vedere anche
Nessuno

Descrizione

Questa macro rompe la forma con la funzione Draft Downgrade e trasforma la faccia selezionata in uno schizzo senza vincoli e pronto per essere modificato.

Script

Icona barra strumenti

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)