Polyline2D¶
The value type Polyline2D is used to create the input controls for a 2D polyline
Syntax¶
<Parameter>
<Name>Polyline2DRow</Name>
<Text>_</Text>
<ValueType>Row</ValueType>
<Parameter>
<Name>Polyline2</Name>
<Text>Point</Text>
<Value>Polyline2D(Points((2000,2000)(3000,3100)(4000,3500))))</Value>
<ValueType>Polyline2D</ValueType>
</Parameter>
</Parameter>
If each coordinate is to be displayed in a separate line, the syntax looks like this
<Parameter>
<Name>Polyline2</Name>
<Text>Point</Text>
<Value>Polyline2D(Points((2000,2000)(3000,3100)(4000,3500))))</Value>
<ValueType>Polyline2D</ValueType>
</Parameter>
The result is
Value unit¶
The unit for the default values assigned to the coordinate values in <Value> is mm.
Example¶
The implementation of the Polyline2D value type is described in the example GeometryElementsInput located in
…\etc\Examples\PythonParts\PaletteExamples\GeometryElementsInput.pyp…\etc\PythonPartsExampleScripts\PaletteExamples\GeometryElementsInput.py