From: vsr Date: Wed, 31 Oct 2012 14:04:44 +0000 (+0000) Subject: 0021937: [CEA 697] "structelem" modulus does not run i f 2 objects have the same... X-Git-Tag: V6_6_0b1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=19973ebc857fa6f3da797b04b398dd34766c0851;p=modules%2Fgeom.git 0021937: [CEA 697] "structelem" modulus does not run i f 2 objects have the same name in ObjectBrowser --- diff --git a/src/GEOM_PY/structelem/__init__.py b/src/GEOM_PY/structelem/__init__.py index 8f90c0002..be6557887 100644 --- a/src/GEOM_PY/structelem/__init__.py +++ b/src/GEOM_PY/structelem/__init__.py @@ -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 = \