Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS 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
Feb 26, 2004
8
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
 
Replies continue below

Recommended for you

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