POLYLINE Function

Returns a polyline. This function is used in the A cell of PolyLineTo geometry rows.

Syntax

POLYLINE(xType, yType, x1, y1...)

Parameters

Name Required/Optional Data Type Description
xType
Required
Boolean
Specifies how to interpret the x input data. If xType is 0, the input x-data is interpreted as a percentage of Width. If xType is 1, the input x-data is interpreted as a local coordinate.
yType
Required
Boolean
Specifies how to interpret the y-input data. If yType is 0, the input y-data is interpreted as a percentage of Height. If yType is 1, the input y-data is interpreted as a local coordinate.
x1
Required
Number
An x-coordinate.
y1
Required
Number
A y-coordinate.

Remarks

For every x argument, there must be a y argument; otherwise, an error is returned.

Example

POLYLINE (0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0)

Returns a rectangle of dimensions Width x Height.