Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 1.31 KB

LeftBound.md

File metadata and controls

50 lines (40 loc) · 1.31 KB

LeftBound

Description

Vectorworks 2012 Deprecated Functions. See LeftBoundN for a replacement.

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 left value of the last matching object found.

FUNCTION LeftBound(c : CRITERIA): REAL;
def vs.LeftBound(c):
    return REAL

Parameters

Name Type Description
c CRITERIA Search criteria.

Examples

VectorScript

LeftBValue:=LeftBound(N='MyRect');

Python

BEGIN
	currentUIP		:= GetPrefReal(152);
	symWidth		:= ( RightBound( N=symbolName ) / currentUIP ) - ( LeftBound( N=symbolName ) / currentUIP );
	symHeight		:= ( TopBound( N=symbolName ) / currentUIP ) - ( BotBound( N=symbolName ) / currentUIP );
	IF ( ( symWidth - kSymbolDisplayWidth ) > ( symHeight - symbolDisplayHeight ) ) THEN
	BEGIN
		scaleFactor := kSymbolDisplayWidth / symWidth;
result = vs.LeftBound(c)

Version

Availability: from All Versions Deprecated: Vectorworks 2012 Deprecated Functions

Category