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