Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Right Clicking Mouse Button To end Point Selection

Status
Not open for further replies.

Thawlro

Computer
Joined
Feb 26, 2004
Messages
8
Location
US
Here it is.

I an using the Getpoint function in a do loop to add a string of circles. I want to end this by clicking the right mouse button. I tried using error trapping and it does not work for me. Does anyone know a better way to get this done?

Thanks
 
Put the getpoint in a while loop that checks for user input. An "enter" or right-click is a 'nil' response to the getpoint. Using lisp (?):

(while (getpoint "\nSelect point: ")
(do stuff here)
(etc...)
);end of while loop
(continue doing stuff here)
 
Thanks for the reply. But I am using VBA.

The command I am using is:

CirclePoint1 = ThisDrawing.Utility.GetPoint ("PickPoint")

When I Right Click I get an error. I need to trap this error and move on to the next function.

I know it is staring me right in the face..but I sure can't see it...lol
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top