From d6d7b36aeb36a5c2082aef0306962a2c50ed91a6 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Thu, 11 Oct 2018 11:10:21 +0200 Subject: [PATCH] FEM: Grammar and organization fixes --- src/Mod/Fem/femtools/femutils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Fem/femtools/femutils.py b/src/Mod/Fem/femtools/femutils.py index 6cb9594b50..84a76ee923 100644 --- a/src/Mod/Fem/femtools/femutils.py +++ b/src/Mod/Fem/femtools/femutils.py @@ -106,7 +106,8 @@ def isDerivedFrom(obj, t): def getBoundBoxOfAllDocumentShapes(doc): overalboundbox = None for o in doc.Objects: - if hasattr(o, 'Shape') and hasattr(o.Shape, 'BoundBox'): # netgen mesh obj has an attribute Shape which is a Document obj, which has no BB + # netgen mesh obj has an attribute Shape which is an Document obj, which has no BB + if hasattr(o, 'Shape') and hasattr(o.Shape, 'BoundBox'): try: bb = o.Shape.BoundBox except: @@ -122,7 +123,7 @@ def getSelectedFace(selectionex): aFace = None # print(selectionex) if len(selectionex) != 1: - FreeCAD.Console.PrintMessage('no or more than one object selected') + FreeCAD.Console.PrintMessage('none OR more than one object selected') else: sel = selectionex[0] if len(sel.SubObjects) != 1: