diff --git a/utils.py b/utils.py index e35a1dc..ce647d5 100644 --- a/utils.py +++ b/utils.py @@ -293,6 +293,8 @@ def getElementPos(obj): if face: surface = face.Surface if str(surface) == '': + if not face.countElement('Edge'): + return face.Placement.Base return face.BoundBox.Center # pos = surface.Position elif all( hasattr(surface,a) for a in ['Axis','Center','Radius'] ):