All Cadcorp SIS API Methods

GetClosestVertex Method

Description

Get the vertex on the current open item closest to the specified position.

Syntax

Visual Basic
Public Function GetClosestVertex( _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal r As Double _
) As String

Parameters

x
The x coordinate from which the search is made.
 
y
The y coordinate from which the search is made.
 
r
The radius within which the closest vertex must lie

Return Type

A comma-delimited string containing the x, y and z co-ordinates of the closest vertex. Use SplitPos to get the x, y and z values themselves. If the closest vertex is not within radius r then the returned string is empty.

Remarks

Available: GEO D OD OM SISpy

Groups:

Example

sis.OpenClosestVertex (100, 90, 500)