AngleComboBox

The value type AngleComboBox is used to create a combo box for an angle value that is displayed in the current Allplan angle input unit.

../../../../_images/AngleComboBox.png

Syntax

<Parameter>
<Name>AngleComboBoxValue</Name>
<Text>AngleComboBox</Text>
<Value>45</Value>
<ValueList>0|45|90|180</ValueList>
<ValueType>AngleComboBox</ValueType>
</Parameter>

Additional info about the <Value> and <ValueList> tag are shown here Value and ValueList

Optional tags

If the PythonPart should be localized, the following tag must be added

<TextId>1001</TextId>

Sometimes it’s useful to disable or hide the combo box 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>

Value unit

The unit for <Value> and </ValueList> is degree.

Example

The implementation of the AngleComboBox value type is described in the example ComboBox, which is located in

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