3 class PythonFeaturesPlugin_Box(ModelAPI_Feature):
4 "Feature to create a box by drawing a sketch and extruding it"
24 def initAttributes(self):
25 self.data().addAttribute(PythonFeaturesPlugin_Box.WIDTH_ID(), ModelAPI_AttributeDouble.type())
26 self.data().addAttribute(PythonFeaturesPlugin_Box.LENGTH_ID(), ModelAPI_AttributeDouble.type())
27 self.data().addAttribute(PythonFeaturesPlugin_Box.HEIGHT_ID(), ModelAPI_AttributeDouble.type())
30 aWidth = self.attribute(PythonFeaturesPlugin_Box.WIDTH_ID()).value()
31 aLength = self.attribute(PythonFeaturesPlugin_Box.LENGTH_ID()).value()
32 aHeight = self.attribute(PythonFeaturesPlugin_Box.HEIGHT_ID()).value()
34 aResult = document().createBody(data())
35 #aResult.store(UserPackage.makeBox(aLength, aWidth, aHeight)
37 #self.setResult(aResult)