Returns the x-coordinate of the bounding box (top left corner) of an object matching the search criteria. If more than one object matches the search criteria, the function will return the value of the coordinate of the leftmost matching object found.
FUNCTION LeftBoundN(c : CRITERIA): REAL;def vs.LeftBoundN(c):
return REAL| Name | Type | Description |
|---|---|---|
| c | CRITERIA | Search criteria. |
LeftBValue:=LeftBoundN(N='MyRect');BEGIN
wsPosX := LeftBoundN(SEL);
wsPosY := TopBoundN(SEL);import vs
# Returns the x-coordinate of the bounding box (top left corner) of an object
# matching the search criteria.
c = "(SEL=TRUE)" # selection criteria - all selected objects
value = vs.LeftBoundN(c)
vs.Message('LeftBoundN returned: ' + str(value))Availability: from Vectorworks 2012