Returns the X coordinate of the object relative to the user origin.
FUNCTION XCoordinate(c : CRITERIA): REAL;def vs.XCoordinate(c):
return REAL| Name | Type | Description |
|---|---|---|
| c | CRITERIA | The search criteria string. |
Valid objects are PIOs, Symbols and Loci.
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))Availability: from Vectorworks 2011