From: NATHALIE GORE Date: Tue, 20 Aug 2019 09:23:39 +0000 (+0200) Subject: Modify for Macro importParameters X-Git-Tag: V9_5_0a1~167^2~65 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8c2723caf52fd7b05d6d950059bc77adc711f18a;p=modules%2Fshaper.git Modify for Macro importParameters --- diff --git a/src/PythonAddons/macros/importParameters/feature.py b/src/PythonAddons/macros/importParameters/feature.py index 440eca6e1..7f2f15055 100644 --- a/src/PythonAddons/macros/importParameters/feature.py +++ b/src/PythonAddons/macros/importParameters/feature.py @@ -58,6 +58,15 @@ class importParameters(model.Feature): model.addParameter(part, defParameters[0], defParameters[1]) file.close() return + + def isMacro(self): + """Override Feature.initAttributes(). + F.isMacro() -> True + + importParameters feature is macro: removes itself on the creation transaction + finish. + """ + return True setError("The file does not exist")