Returns the y-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 topmost matching object found.
FUNCTION TopBoundN(c : CRITERIA): REAL;def vs.TopBoundN(c):
return REAL| Name | Type | Description |
|---|---|---|
| c | CRITERIA | Search criteria. |
TopBValue:=TopBoundN(N='MyRect');BEGIN
wsPosX := LeftBoundN(SEL);
wsPosY := TopBoundN(SEL);import vs
# Returns the y-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.TopBoundN(c)
vs.Message('TopBoundN returned: ' + str(value))Availability: from Vectorworks 2012