From e6cd9fa01003f0640d73d7c05fcd89c36df95bc9 Mon Sep 17 00:00:00 2001 From: srn Date: Fri, 10 Feb 2006 09:30:05 +0000 Subject: [PATCH] Modified a method getDefaultScript --- src/SALOMEDS/SALOMEDS_IParameters.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"; } -- 2.39.2