[[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| Name | Type | Description |
|---|---|---|
| c | CRITERIA | Search criteria. |
==== VectorScript ====
XCenValue:=XCenter(N='Board');
{returns the x-coord of the center of the named object 'Board'}==== Python ====
Availability: from All Versions Deprecated: [[VS:Vectorworks 2012 Deprecated Functions|Vectorworks 2012]]
- Criteria