Macro FaceToSketch: Difference between revisions
m (icon) |
m (|) |
||
Line 9: | Line 9: | ||
|Version=1.0 |
|Version=1.0 |
||
|Date=2013-12-23 |
|Date=2013-12-23 |
||
FCVersion=All |
-FCVersion=All |
||
Download=[https://www.freecadweb.org/wiki/images/6/6e/Macro_FaceToSketch.png ToolBar Icon] |
|Download=[https://www.freecadweb.org/wiki/images/6/6e/Macro_FaceToSketch.png ToolBar Icon] |
||
}} |
}} |
||
Revision as of 16:25, 14 June 2019
Description |
---|
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. Macro version: 1.0 Last modified: 2013-12-23 -FCVersion=All |
Author |
Jreinhardt |
Download |
ToolBar Icon |
Links |
Macros recipes How to install macros How to customize toolbars |
Macro Version |
1.0 |
Date last modified |
2013-12-23
-FCVersion=All |
FreeCAD Version(s) |
None |
Default shortcut |
None |
See also |
None |
Description
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.
Script
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)