Expressions
Type an expression on its own and the Interactive window shows its value.
Syntax
expression
| Argument | Meaning |
|---|---|
| expression | Any expression: a calculation, a variable, a point, a property of an element … |
Examples
L*2+W
P2
DISTANCE(P0,P2)
SQRT(2)
MAX(L,W)/2
Each line is shown back with its value, as DISTANCE(P0,P2) → 640.312424. Nothing in the drawing changes.
Notes
With elements drawn, they can be measured too: LENGTHOF(@1) is the length of element @1, and @1.START its start
point; see LENGTHOF and .NAME.
To keep a value, give it a name with an assignment.
See also: Expressions, PRINT.