GetPoint Method (Line Object)

Scope: Schematic editor

Object: Line Object

Prerequisites: None

Returns the coordinates of the specified Point Object.

Note:

Line point indexes are 0 based. That is, the first point in a line is point 0, the second is point 1, and so on.

Usage

Line.GetPoint(ByVal PointNumber As Long) As IVdPoint

Arguments

PointNumber

Specifies the line point (0 through n) for which to derive the coordinates.

Return Values

As IVdPoint. The Point Object.

Description

A line may contain many points. Use this method to index each point.

Examples

Show all points.

For Index=0 To Line.GetNumPoints()-1 
    Set Pt=GetPoint(Index) 
    MsgBox "X=" & Pt.X & " Y=" & Pt.Y 
Next