1 """Box macro-feature Interface
2 Author: Daniel Brunier-Coulin
3 Copyright (C) 2014-20xx CEA/DEN, EDF R&D
7 from macros.box.feature import BoxFeature as MY
10 class Box(modeler.Interface):
11 """Executes the macro-feature Box.
13 def __init__(self, part, dx, dy, dz):
15 modeler.Interface.__init__(self, part, MY.ID())
17 self.setRealInput( MY.WIDTH_ID(), dx )
18 self.setRealInput( MY.LENGTH_ID(), dy )
19 self.setRealInput( MY.HEIGHT_ID(), dz )
21 if self.areInputValid():
24 raise Exception("cannot make the Box")