Procedure GetOriginInDocUnits returns the current origin location relative to the center of the page in current units. It fixes the problem existing for GetOrigin (see remarks). The behavior is the same while used during objects reset and in commands.
PROCEDURE GetOriginInDocUnits(
VAR x : REAL;
VAR y : REAL);def vs.GetOriginInDocUnits():
return (x, y)| Name | Type | Description |
|---|---|---|
| x | REAL | Returns X coordinate of origin. |
| y | REAL | Returns Y coordinate of origin. |
PROCEDURE Example;
VAR
originPt : VECTOR;
BEGIN
GetOriginInDocUnits(originPt.x, originPt.y);
Message(originPt);
END;
RUN(Example);VS Functions: GetOrigin
Availability: from Vectorworks 2016