Skip to main content

DRAW.LINE

Define a graphical line.

Syntax

=DRAW.LINE(UniqueID, Container, Name, X1, Y1, X2, Y2 [,LineFormat])

Arguments

NameDescription
UniqueIdUnique Id of drawing object. Should not be modified and must be unique.
ContainerOptional. Name of the container object this object is placed within. Coordinates are relative then.
NameName of drawing object. Must be unique.
X1X Start Coordinate in 1/100th mm
Y1Y Start Coordinate in 1/100th mm
X2X End Coordinate in 1/100th mm
Y2Y End Coordinate in 1/100th mm
LineFormatOptional. Options:
- None for no line
- Hexadecimal color value (#FF0000 for Red)
- JSON String created using lineformat

Return Value

TRUE, if line could be created.

Example

FunctionResultComment
=DRAW.LINE("ID1", "", "Line1", 1000, 1000, 3000, 3000)TRUEDraw a line from coordinate 1cm, 1cm to coordinate 3cm, 3cm.