From e63bb2c6a90e107a69c9283b10dff7f9ce2834de Mon Sep 17 00:00:00 2001 From: barate Date: Wed, 20 Mar 2013 16:55:12 +0000 Subject: [PATCH] Fix detection of GEOM groups for structural elements --- src/GEOM_PY/structelem/parts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GEOM_PY/structelem/parts.py b/src/GEOM_PY/structelem/parts.py index 538724268..4530b830a 100644 --- a/src/GEOM_PY/structelem/parts.py +++ b/src/GEOM_PY/structelem/parts.py @@ -137,7 +137,7 @@ class StructuralElementPart: self.name = name self.geom = getGeompy(studyId) self.baseShapesSet = set() - self.isMainShape = groupGeomObj.IsMainShape() + self.isMainShape = (groupGeomObj.GetType() != 37) # See geompyDC.ShapeIdToType for type codes if not self.isMainShape: mainShape = self.geom.GetMainShape(groupGeomObj) listIDs = self.geom.GetObjectIDs(groupGeomObj) -- 2.39.2