Macro HealArcs/es

from draftlibs import fcgeo import FreeCAD,FreeCADGui,Part sel = FreeCADGui.Selection.getSelection if not sel: FreeCAD.Console.PrintWarning("Select something first!") else: removeList = [] for obj in sel: ed = obj.Shape.Edges[0] arc = fcgeo.arcFromSpline(ed) if arc: Part.show(arc) removeList.append(obj.Name) FreeCAD.ActiveDocument.recompute print "removing ",removeList for n in removeList: FreeCAD.ActiveDocument.removeObject(n)