Add [Profiles]
The Add method adds a new profile to the Profiles collection. Returns a Profile object.
Syntax
object. Add ( Vertices )
Parameter |
Type |
Default |
Description |
Vertices |
Array of Doubles |
required; This is the array of points specifying the vertices of the profile line |
Remarks
The points used for the Vertices array are in map units. The points are specified in the array as x(1), y(1), x(2), y(2)... x(n), y(n).
Example
This example demonstrates how to create an array of points and create a profile.
'declare pts as array of doubles
Dim pts(3) As Double
'set pts array element values
pts(0) = 275 : pts(1) = 330 pts(2) = 475 : pts(3) = 180
'add the profile to the map
Set prof1 = Map.Profiles.Add(pts)
Used by: Profiles Collection