From 7a8213bac8410b454604d8c319b1dee7fb118648 Mon Sep 17 00:00:00 2001 From: NATHALIE GORE Date: Tue, 20 Aug 2019 11:23:39 +0200 Subject: [PATCH] Modify for Macro importParameters --- src/PythonAddons/macros/importParameters/feature.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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") -- 2.39.2