ReinforcementShapeBarProperties

The ReinforcementShapeBarProperties type is used to create a parameter with multiple reinforcement bar shape input controls in the property palette:

../../../../_images/ReinforcementShapeBarProperties.png

Syntax

<Parameter>
<Name>BarProperties</Name>
<Text>Bar shape properties</Text>
<Value>ReinforcementShapeProperties(ConcreteGrade(-1),SteelGrade(-1),Diameter(25.0),BendingRoller(4.0))</Value>
<ValueType>ReinforcementShapeBarProperties</ValueType>
</Parameter>

The internal value of the parameter is a ReinforcementShapeProperties object and the value from the input controls are assessable by the properties of this object.

Optional tags

Sometimes it’s useful to disable or hide the controls depending on the value of another parameter. This is achieved by adding additional tags to the parameter or by defining functions in the py-file. See Enable and visible options

The persistent state of the parameter can be changed by adding

<Persistent></Persistent>

Example

The implementation of the ReinforcementShapeBarProperties value type is described in the example AllControls, which is located in

…\etc\Examples\PythonParts\PaletteExamples\AllControls.pyp
…\etc\PythonPartsExampleScripts\PaletteExamples\AllControls.py