Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 974 Bytes

TopBoundN.md

File metadata and controls

45 lines (35 loc) · 974 Bytes

TopBoundN

Description

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

Parameters

Name Type Description
c CRITERIA Search criteria.

Examples

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))

Version

Availability: from Vectorworks 2012

Category