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