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 MM ME MD OD OM SISpy

Groups:

Example

sis.OpenClosestVertex (100, 90, 500)


Send comments on this topic.

Click to return to www.cadcorp.com

© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).