Message 1 of 2
Get a point with snap using a jig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a jig that I use to select an endpoint. But the jig will only return the position of the mouse. If I snap to end point for example and click a little bit from the endpoint I will not get the endpoint. What should I do?
{code}
' Sampler captures mouse movements while asking for a point
Dim jigOpts As JigPromptPointOptions = New JigPromptPointOptions(vbLf & "Select endpoint:")
jigOpts.UserInputControls = UserInputControls.NullResponseAccepted
myPR = prompts.AcquirePoint(jigOpts)
If myPR.Value.IsEqualTo(BasePt) Then
Return SamplerStatus.NoChange
Else
BasePt = myPR.Value
Return SamplerStatus.OK
End If
{code}
{code}
' Sampler captures mouse movements while asking for a point
Dim jigOpts As JigPromptPointOptions = New JigPromptPointOptions(vbLf & "Select endpoint:")
jigOpts.UserInputControls = UserInputControls.NullResponseAccepted
myPR = prompts.AcquirePoint(jigOpts)
If myPR.Value.IsEqualTo(BasePt) Then
Return SamplerStatus.NoChange
Else
BasePt = myPR.Value
Return SamplerStatus.OK
End If
{code}