import Part Part.show(Part.makeBox(100,100,100)) Gui.SendMsgToActiveView("ViewFit") length = 0.0 for o in Gui.Selection.getSelectionEx(): for s in o.SubObjects: length += s.Length print "Length of the selected edges:" ,length Caesar卢尚宇 2020年3月31日