Twullf
Mechanical
- Jan 24, 2012
- 196
This is used in UG, I am selecting a point, however if cancel is selected I want to use a default value of x and y. For some reason though I am only getting a value of 0, 0.
My head says this should work, when I select a point it works, so we definitely have a True response, however a false response is NOT working.
Any help is appreciated.
Code:
Try
response = theUI.SelectionManager.SelectScreenPosition("Select location for LAM Lines to Begin", _
view, cursor)
booleanResponse = True
Catch
booleanResponse = False
End Try
If booleanResponse = true Then
x = cursor.x
y = cursor.y
Else
x = 170
y = 450
End If
My head says this should work, when I select a point it works, so we definitely have a True response, however a false response is NOT working.
Any help is appreciated.