0021937: [CEA 697] "structelem" modulus does not run i f 2 objects have the same name in ObjectBrowser

This commit is contained in:
vsr 2012-10-31 14:04:44 +00:00
parent 739bac212f
commit 19973ebc85

View File

@ -147,7 +147,13 @@ class StructuralElementManager:
(meshGroupList, newparams) = self._extractMeshGroups(command)
for meshGroup in meshGroupList:
# Get the geometrical primitive object
groupSObj = self._studyEditor.study.FindObject(meshGroup)
if meshGroup.startswith('/'):
groupSObj = self._studyEditor.study.FindObjectByPath(meshGroup)
meshGroup = meshGroup.split('/')[-1]
pass
else:
groupSObj = self._studyEditor.study.FindObject(meshGroup)
pass
groupGeomObj = None
if groupSObj is not None:
groupGeomObj = \