]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Modify for Macro importParameters
authorNATHALIE GORE <ng13417n@dsp0897499.atlas.edf.fr>
Tue, 20 Aug 2019 09:23:39 +0000 (11:23 +0200)
committervsv <vsv@opencascade.com>
Wed, 6 Nov 2019 08:22:44 +0000 (11:22 +0300)
src/PythonAddons/macros/importParameters/feature.py

index 440eca6e10671f0fbdac2d82282927c20dede027..7f2f15055e32b9d5e214d9d66d26feab02ef8e33 100644 (file)
@@ -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")