From: pascale.noyret Date: Wed, 23 Jun 2021 09:47:16 +0000 (+0200) Subject: generator_XML.py X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=335654d33c68d58969660647cf47fbb3b67e4f40;p=tools%2Feficas.git generator_XML.py --- diff --git a/generator/generator_XML.py b/generator/generator_XML.py index 451601af..fb1623a0 100644 --- a/generator/generator_XML.py +++ b/generator/generator_XML.py @@ -99,13 +99,14 @@ class XMLGenerator(PythonGenerator): def generMCSIMP(self,obj) : - if obj.nom in self.dictNbNomObj.keys(): - nomUtil = obj.nom + "_" + str(self.dictNbNomObj[obj.nom]) - self.dictNbNomObj[obj.nom] += 1 - else : - nomUtil = obj.nom - self.dictNbNomObj[obj.nom] = 1 - if obj.definition.avecBlancs : self.textePourAide += nomUtil + " = vimmpCase." + obj.getNomDsXML() + ".s\n" + if obj.nom != 'Consigne' : + if obj.nom in self.dictNbNomObj.keys(): + nomUtil = obj.nom + "_" + str(self.dictNbNomObj[obj.nom]) + self.dictNbNomObj[obj.nom] += 1 + else : + nomUtil = obj.nom + self.dictNbNomObj[obj.nom] = 1 + if obj.definition.avecBlancs : self.textePourAide += nomUtil + " = vimmpCase." + obj.getNomDsXML() + ".s\n" else : self.textePourAide += nomUtil + " = vimmpCase." + obj.getNomDsXML() + "\n" self.textePourAide +='txt += "' + nomUtil + '" + " = " +str( ' + nomUtil + ')+"\\n"'+ "\n"