Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 903 Bytes

File metadata and controls

43 lines (35 loc) · 903 Bytes

GetOriginInDocUnits

Description

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)

Parameters

Name Type Description
x REAL Returns X coordinate of origin.
y REAL Returns Y coordinate of origin.

Examples

PROCEDURE Example;
VAR
originPt : VECTOR;
BEGIN
GetOriginInDocUnits(originPt.x, originPt.y);
Message(originPt);
END;
RUN(Example);

See Also

VS Functions: GetOrigin

Version

Availability: from Vectorworks 2016

Category