]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make for exported Group to GEOM the same name as in NewGeom
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 12 Feb 2015 13:04:55 +0000 (16:04 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 12 Feb 2015 13:04:55 +0000 (16:04 +0300)
src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py

index 9f2768e4c68f875ee6a74bfc80fa07615238529e..26ab3ca9fd49099ae27ac15dd0198b381852be41 100644 (file)
@@ -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