Coordinate Property |
Specifies the coordinate of a single vertex in the object.
Signature
object.Coordinate(index)
object
3DPoly, Leader, LightweightPolyline,
Point, PolyfaceMesh, PolygonMesh, Polyline, Section, Solid, Trace
The object or objects this property applies to.
Coordinate
Variant (three-element or two-element array
of doubles); read-write
The array of X, Y, and Z coordinates for the
specified vertex.
LightweightPolyline object: The variant has two elements
representing the X and Y coordinates in OCS.
Polyline object: The variant has three elements, representing the
X and Y coordinates in OCS. The Z coordinate
is present in the variant but ignored.
All other objects: The variant has three elements, representing the
X and Y coordinates in WCS; the Z coordinate
will default to 0 on the active UCS.
Index
Integer
The index in the array of vertices for the vertex you want to set
or query. The vertex arrays are 0 based.
Remarks
This property will replace any existing vertices for the specified object. Use standard array-handling techniques to process the values contained in this property.
3DPolyline, Polyline, PolygonMesh: For simple polylines (not splined or curve fit), this property specifies simple vertices. For splined or curve-fit polylines, this property specifies control point vertices.
The OCS coordinates for the Polyline and LightweightPolyline objects can be converted to and from other coordinate systems using the TranslateCoordinates method.
Comments? |