Weight¶
The value type Weight is used to create an edit field for a weight value that is displayed in the current Allplan weight input unit.
Syntax¶
<Parameter>
<Name>WeightValue</Name>
<Text>Weight</Text>
<Value>100</Value>
<ValueType>Weight</ValueType>
</Parameter>
Value unit¶
The unit for the default values assigned to <Value>, <MinValue>, <MaxValue> and <IntervalValue> is kg.
Example¶
The implementation of the Weight value type is described in the example AllControls, which is located in
…\etc\Examples\PythonParts\PaletteExamples\AllControls.pyp
…\etc\PythonPartsExampleScripts\PaletteExamples\AllControls.py