All Cadcorp SIS API Methods

GetClosestPt Method

Description

Calculate the position on the current open item closest to the specified position.

Syntax

Visual Basic
Public Function GetClosestPt( _
   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 point must lie.

Return Type

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

Remarks

Available: GEO D OD OM SISpy

Groups:

Example

sis.OpenClosestPt (100, 90, 500)