mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-27 16:40:34 +05:00
0021937: [CEA 697] "structelem" modulus does not run i f 2 objects have the same name in ObjectBrowser
This commit is contained in:
parent
739bac212f
commit
19973ebc85
@ -147,7 +147,13 @@ class StructuralElementManager:
|
|||||||
(meshGroupList, newparams) = self._extractMeshGroups(command)
|
(meshGroupList, newparams) = self._extractMeshGroups(command)
|
||||||
for meshGroup in meshGroupList:
|
for meshGroup in meshGroupList:
|
||||||
# Get the geometrical primitive object
|
# 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
|
groupGeomObj = None
|
||||||
if groupSObj is not None:
|
if groupSObj is not None:
|
||||||
groupGeomObj = \
|
groupGeomObj = \
|
||||||
|
Loading…
Reference in New Issue
Block a user