From: srn Date: Fri, 10 Feb 2006 09:30:05 +0000 (+0000) Subject: Modified a method getDefaultScript X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e6cd9fa01003f0640d73d7c05fcd89c36df95bc9;p=modules%2Fkernel.git Modified a method getDefaultScript --- diff --git a/src/SALOMEDS/SALOMEDS_IParameters.cxx b/src/SALOMEDS/SALOMEDS_IParameters.cxx index 83292d386..8fd2fcf33 100644 --- a/src/SALOMEDS/SALOMEDS_IParameters.cxx +++ b/src/SALOMEDS/SALOMEDS_IParameters.cxx @@ -289,7 +289,10 @@ string SALOMEDS_IParameters::getDefaultScript(_PTR(Study) study, for(int i = 0; i names = ip.getAllParameterNames(v[i]); vector 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"; }