Makro FlächeZuSkizze

From FreeCAD Documentation
Revision as of 11:59, 26 July 2014 by Renatorivo (talk | contribs) (Created page with "Macro FaceToSketch")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

File:Text-x-python FaceToSketch

Description
Converts a face into a sketch without constraints.

Author: Jreinhardt
Author
Jreinhardt
Download
None
Links
Macro Version
1.0
Date last modified
None
FreeCAD Version(s)
None
Default shortcut
None
See also
None

This macro breaks down your form with function Draft Downgrade and transforms the face selected in a sketch without constraints, and ready to be modified.


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)
Other languages: