From: ilct <> Date: Fri, 9 Nov 2012 15:33:09 +0000 (+0000) Subject: il: mise en place macro Include (suite) X-Git-Tag: LOGILAB~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5dca6ddbcf2a61ec079067b3961aa84d39471dad;p=tools%2Feficas.git il: mise en place macro Include (suite) --- diff --git a/generator/generator_CARMEL3D.py b/generator/generator_CARMEL3D.py index d5ca886a..8c07c940 100644 --- a/generator/generator_CARMEL3D.py +++ b/generator/generator_CARMEL3D.py @@ -201,12 +201,19 @@ class CARMEL3DGenerator(PythonGenerator): import generator monGenerateur=generator.plugins["CARMEL3D"]() jdc_aux_texte=monGenerateur.gener(obj.jdc_aux) - print "__________________________________________________" - print monGenerateur.texteCarmel3D - print monGenerateur.dictMaterConductor - # self.dictMaterConductor += monGenerateur.dictMaterConductor - print "__________________________________________________" - s=PythonGenerator.generETAPE(self,obj) + print "_______MACRO_______________________________________" + if self.debug: print "jdc_aux_texte :" , jdc_aux_texte + + if monGenerateur.dictMaterConductor != {} : + for cle in monGenerateur.dictMaterConductor: + print "cle= ", cle + self.dictMaterConductor[cle] = monGenerateur.dictMaterConductor[cle] + if monGenerateur.dictMaterDielectric != {} : + for cle in monGenerateur.dictMaterDielectric: + self.dictMaterDielectric[cle] = monGenerateur.dictMaterDielectric[cle] + + print "________FIN MACRO______________________________________" + s=PythonGenerator.generMACRO_ETAPE(self,obj) return s #----------------------------------------------------------------------------------------