Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 982 Bytes

LeftBoundN.md

File metadata and controls

45 lines (35 loc) · 982 Bytes

LeftBoundN

Description

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

Parameters

Name Type Description
c CRITERIA Search criteria.

Examples

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

Version

Availability: from Vectorworks 2012

Category