From: NATHALIE GORE Date: Tue, 20 Aug 2019 09:23:39 +0000 (+0200) Subject: Modify for Macro importParameters X-Git-Tag: V9_4_0a2~7^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7a8213bac8410b454604d8c319b1dee7fb118648;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")