Cadcorp SIS API Methods

Snap Method

Description

Supplies a position to the current callback command.

Syntax

Visual Basic
Public Function Snap( _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal z As Double _
) As Integer

Parameters

x
The x coordinate of the position.
 
y
The y coordinate of the position.
 
z
The z coordinate of the position.

Remarks

Snap is the equivalent to typing a position in the position bar, then pressing Enter, or to receiving a position from a GPS.

Available: MM ME MD OD OM

Group:

Example

From the SIS Ribbon select: 2 Points [Create-Advanced-Circle], then run a GisLink program containing GisSnaps to provide the positions:

sis.Snap ( x1, y1, z1 )
sis.Snap ( x2, y2, z2 )

This will create a circle with positions supplied by a GisLink program.


Send comments on this topic.

Click to return to www.cadcorp.com

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