]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0021937: [CEA 697] "structelem" modulus does not run i f 2 objects have the same...
authorvsr <vsr@opencascade.com>
Wed, 31 Oct 2012 14:04:44 +0000 (14:04 +0000)
committervsr <vsr@opencascade.com>
Wed, 31 Oct 2012 14:04:44 +0000 (14:04 +0000)
src/GEOM_PY/structelem/__init__.py

index 8f90c00025ed446661fb3cb9e535351d09e1d09f..be6557887a48db2fa36e49be221210655237c605 100644 (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 = \