Salome HOME
Simplification of "Update" algorithm and "Macro" flag implementation for the box...
[modules/shaper.git] / src / PythonAddons / macros / box / feature.py
index 675b84c42087649765af1ead4b6a36b0fb32d2a6..d5d5e8e07c6efaa2bf603bb04e3a5cbf8e8b6adb 100644 (file)
@@ -82,8 +82,9 @@ class BoxFeature(modeler.Feature):
     self.base.setValue( self.length, length )
     self.box.setSize( height )
 
-    # Publishing the result
-    self.addResult( self.box.result() )
-
-       
-
+    # Publishing the result: not needed for Macro feature
+    #self.addResult( self.box.result() )
+  
+  def isMacro(self):
+    # Box feature is macro: removes itself on the creation transaction finish
+    return True