Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 983 Bytes

File metadata and controls

40 lines (29 loc) · 983 Bytes

XCenter

Description

[[VS:Vectorworks 2012 Deprecated Functions|DEPRECATED after Vectorworks2012]][[VS:Vectorworks 2012 Deprecated Functions|DEPRECATED after Vectorworks2012]]. See [[VS:XCenterN|XCenterN]] for a replacement function.

Returns the x-coordinate of the center point of an object matching the serach criteria. If more than one object matches the search criteria, the function will return the sum of the coordinates of all the matching objects.

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

Parameters

Name Type Description
c CRITERIA Search criteria.

Examples

==== VectorScript ====

XCenValue:=XCenter(N='Board');
{returns the x-coord of the center of the named object 'Board'}

==== Python ====

Version

Availability: from All Versions Deprecated: [[VS:Vectorworks 2012 Deprecated Functions|Vectorworks 2012]]

Category

  • Criteria