Macro SuperWire/fr

=Macro_SuperWire/fr=

Attention, vous avez besoin d'une version récente de FreeCAD pour utiliser cette macro.

import FreeCAD,FreeCADGui,Part try: import DraftGeomUtils as fcgeo except: from draftlibs import fcgeo sel = FreeCADGui.Selection.getSelection if not sel: FreeCAD.Console.PrintWarning("Select something first!") else: elist = [] for obj in sel: if hasattr(obj,"Shape"): elist.append(obj.Shape.Edges[0]) wire = fcgeo.superWire(elist) if wire: Part.show(wire) else: FreeCAD.Console.PrintError("SuperWire operation failed!")