Vertices2 Property

 

Vertices2 returns or sets the curve vertices. Returns an array of doubles. This method is the same as the Vertices property, except it takes the pointer to the array. VB users may want to call this property instead of Vertices. Note: Golden Software does not officially support VB.

 

Syntax

object.Vertices2( UnitType )

object.Vertices2( UnitType ) = Vertices

 

Parameter

Type

Description

UnitType

MVCoordDisplayUnits

optional; unit type, default is mvCoordDisplayUnitPageUnits

Vertices

Array of Doubles

required; array containing each vertex in the curve

 

Remarks

VB users can use ReDim to set the array size to the used size if necessary.

 

Example 1

This example demonstrates how to return the array of the curve vertices. Since the Vertices2 array is an outgoing parameter, the value of the elements inside the array can be returned.

 

Dim Vertices2() As Double

Vertices2() = Polyline.Vertices2

 

Dim Element As Integer

For Element = 0 to 5 Step 1

 Debug.Print Vertices2(Element)

Next

 

Example 2

This example demonstrates how to set the vertices of an existing polyline.

 

Dim coordinates(5) As Double

coordinates(0)=3.44: coordinates(1)=4.06

coordinates(2)=1.10: coordinates(3)=6.39

coordinates(4)=6.51: coordinates(5)=6.52

Polyline.Vertices2 = coordinates

 

Used by: Curve object