Pick Tool - VB Example



Your Ad Here

Pick Point .

 

VB Sample project

The following example demonstrates how to get the coordinates by picking point (by filter).

  1. Open a new VB project (Standard EXE) in Visual Basic (see example).

  2. Add a command button to Form1.

  3. Paste the following code into Form1:

Private Sub Command1_Click()

Dim X As Double, Y As Double, Z As Double

' in case that the user Press "EXIT" (MMB) then reurn FALSE

If Not gSuite.PickTool.PickPointByFilter(suPtMid, X, Y, Z) Then

MsgBox "No point was selected"

End If

End Sub

  1. Press the F5 key to run the project or on the Tools menu, click Run Project.

Return to Cimatron Index


Your Ad Here