Salome HOME
Issue #1648: Dump Python in the High Level Parameterized Geometry API
[modules/shaper.git] / src / PythonAPI / extension / box.py
index 6808cd4412632a520c1ecf8ff5b6d7aa79de4f14..5897da2c52486ecd5cc36a11a572113de470be78 100644 (file)
@@ -7,7 +7,7 @@ from model import Interface
 from macros.box.feature import BoxFeature as MY
 
 
-def addBox(part, *args):
+def addBoxScript(part, *args):
     """Add Box feature to the part and return Box.
 
     Pass all args to Box __init__ function.
@@ -47,20 +47,20 @@ class Box(Interface):
         self.setLength(dy)
         self.setHeight(dz)
 
-        self._execute()
+        self.execute()
         pass
 
     def setWidth(self, width):
         """B.setWidth(float) -- modify width attribute"""
-        self._fill_attribute(self._width, width)
+        self._width.setValue(width)
         pass
 
     def setLength(self, length):
         """B.setLength(float) -- modify length attribute"""
-        self._fill_attribute(self._length, length)
+        self._length.setValue(length)
         pass
 
     def setHeight(self, height):
         """B.setHeight(float) -- modify height attribute"""
-        self._fill_attribute(self._height, height)
+        self._height.setValue(height)
         pass