Results 1 to 3 of 3

Thread: ^C^C and pick point question

  1. #1
    All AUGI, all the time
    Join Date
    2003-10
    Posts
    688

    Default ^C^C and pick point question

    Is there an equivalent to ^C^C (cancel current command) in VBA? I need to make sure nothing else is running before the private sub starts doing it's thing. Since I have my program in a modeless form, it is always up on screen so the user can be in the middle of a command and still click one of my buttons. AutoCAD locks up because it's still in the original command and nothing recovers it (to my knowledge) other than shutting down with task manager.

    Also, I have a program (userform) that stays on the screen modeless until the user clicks a commandbutton to activate the getpoint method. The problem I'm having is that the user can type either 'PAN or '_PAN on the command to transparent pan before picking his/her point without a problem but as soon as they try to access transparent pan through the toolbar it comes back with an error. What causes this? The code in the toolbar is simply '_PAN. What's the difference and how can I fix this?

  2. #2
    Forum Manager, Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    4,777

    Default Re: ^C^C and pick point question

    I'm heading out of the office now, I don't have time to get into the second question other than it is a limitation of the vba api. As for the first, check out the SendKeys function.
    C:> ED WORKING....

  3. #3
    All AUGI, all the time
    Join Date
    2003-10
    Posts
    688

    Default Re: ^C^C and pick point question

    Just wanted to update everyone on the ^c^c question. My main goal was to exit out of any command that was running before my VBA sub ran (form was up modeless, which allowed the user to click a button while in a command). Instead of ^c^c to get out of the command I used:

    If ThisDrawing.Application.GetAcadState.IsQuiescent = True Then......

    to see if AutoCAD was busy before the command ran. It worked great so I thought I'd share this with those out there who didn't know you could do that. Thanks.

Similar Threads

  1. Mid & End point pick precision
    By msavage in forum Inventor - General
    Replies: 1
    Last Post: 2010-07-15, 05:38 PM
  2. pick point hatch
    By cadpro929 in forum AutoCAD General
    Replies: 1
    Last Post: 2010-01-08, 12:43 PM
  3. Pick a point
    By fabrice in forum Revit - API
    Replies: 6
    Last Post: 2007-06-28, 09:43 PM
  4. Replies: 3
    Last Post: 2006-06-09, 12:19 PM
  5. Link pick point jumps to another point
    By lapace in forum AutoLISP
    Replies: 5
    Last Post: 2006-01-19, 08:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •