ONELEMENT
The point a fraction of the way along an element.
Syntax
ONELEMENT(@e,t)
ONELEMENT(@e,FROMEND(t))
| Argument | Meaning |
|---|---|
| @e | The element. |
| t | How far along, by length: 0 its start, 1 its end, 0.5 half way. In FROMEND, from its end. |
Result
A position on the element.
Examples
In the example drawing:
| Expression | Gives |
|---|---|
ONELEMENT(@5,0.5) |
[50,0] |
ONELEMENT(@5,FROMEND(0.25)) |
[75,0] |
ONELEMENT(@6,0.25) |
[50,30] |
Notes
It follows the element: a point defined this way moves when the element does, and is never fixed in space. A fraction below 0 or above 1 gives that end. The Midpoint snap writes ONELEMENT(@e,0.5); the Split tool writes it for its cuts.
See also: ALONGELEMENT, FROMEND, @n.