From 7f4f4c9b4ee9a6fdcf0b915621b8ebdc9d74dbda Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 12 Feb 2015 16:04:55 +0300 Subject: [PATCH] Make for exported Group to GEOM the same name as in NewGeom --- src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2