Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 748 Bytes

XCoordinate.md

File metadata and controls

41 lines (31 loc) · 748 Bytes

XCoordinate

Description

Returns the X coordinate of the object relative to the user origin.

FUNCTION XCoordinate(c : CRITERIA): REAL;
def vs.XCoordinate(c):
    return REAL

Parameters

Name Type Description
c CRITERIA The search criteria string.

Remarks

Valid objects are PIOs, Symbols and Loci.

Examples

resultVal := XCoordinate(c);
import vs

# Returns the X coordinate of the object relative to the user origin.
c = "(SEL=TRUE)"  # selection criteria - all selected objects

value = vs.XCoordinate(c)
vs.Message('XCoordinate returned: ' + str(value))

Version

Availability: from Vectorworks 2011

Category