From 19973ebc857fa6f3da797b04b398dd34766c0851 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 31 Oct 2012 14:04:44 +0000 Subject: [PATCH] 0021937: [CEA 697] "structelem" modulus does not run i f 2 objects have the same name in ObjectBrowser --- src/GEOM_PY/structelem/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 = \ -- 2.39.2