Stroke¶
The Stroke type is used to create a combo box for a stroke selection. The result assigned to the parameter is the integer value associated with the selected stroke.
Syntax¶
<Parameter>
<Name>Stroke</Name>
<Text>Stroke</Text>
<Value>-1</Value>
<ValueType>Stroke</ValueType>
</Parameter>
If the <Value> tag is assigned the value -1, the parameter is initialized with the stroke currently used in Allplan.
Example¶
The implementation of the Stroke value type is described in the example CommonStyleControls, which is located in
…\etc\Examples\PythonParts\PaletteExamples\CommonStyleControls.pyp
…\etc\PythonPartsExampleScripts\PaletteExamples\CommonStyleControls.py