]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Modified a method getDefaultScript
authorsrn <srn@opencascade.com>
Fri, 10 Feb 2006 09:30:05 +0000 (09:30 +0000)
committersrn <srn@opencascade.com>
Fri, 10 Feb 2006 09:30:05 +0000 (09:30 +0000)
src/SALOMEDS/SALOMEDS_IParameters.cxx

index 83292d3869a890657e78c98526ad90f2a7b7fd6c..8fd2fcf3371f1dde2985b501d25bf9a88210cfa9 100644 (file)
@@ -289,7 +289,10 @@ string SALOMEDS_IParameters::getDefaultScript(_PTR(Study) study,
     for(int i = 0; i<v.size(); i++) {
       vector<string> names = ip.getAllParameterNames(v[i]);
       vector<string> values = ip.getAllParameterValues(v[i]);
-      dump += shift + "# set up entity " + v[i] + " parameters" + "\n";
+      _PTR(SObject) so = study->FindObjectID(v[i]);
+      string so_name("");
+      if(so) so_name = so->GetName();
+      dump += shift + "# set up entry " + v[i] +" ("+so_name+")" + " parameters" + "\n";
       for(int j = 0; j < names.size() && j < values.size(); j++)
        dump += shift + "ipar.setParameter(\"" + v[i] + "\", \"" + names[j] + "\", \"" + values[j] + "\")\n";
     }