From: vsv Date: Thu, 12 Feb 2015 13:04:55 +0000 (+0300) Subject: Make for exported Group to GEOM the same name as in NewGeom X-Git-Tag: V_1.1.0~195^2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7f4f4c9b4ee9a6fdcf0b915621b8ebdc9d74dbda;p=modules%2Fshaper.git Make for exported Group to GEOM the same name as in NewGeom --- diff --git a/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py b/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py index 9f2768e4c..26ab3ca9f 100644 --- a/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py +++ b/src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py @@ -84,10 +84,11 @@ class ExportFeature(ModelAPI.ModelAPI_Feature): for anIndex in range(0, aFeaturesNum): aFeature = self.Part.object("Features", anIndex) aSelectionList = aFeature.data().selectionList("group_list") + aName = aFeature.data().name() # if a group has been found if aSelectionList: groupIndex = groupIndex + 1 - self.createGroupFromList(aSelectionList, "NewGeomGroup_{0}".format(groupIndex)) + self.createGroupFromList(aSelectionList, aName) ## Creates a group by given list of selected objects and the name # @param theSelectionList: list of selected objects