Fix detection of GEOM groups for structural elements

This commit is contained in:
barate 2013-03-20 16:55:12 +00:00
parent 9b2fb51c96
commit e63bb2c6a9

View File

@ -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)