An action cannot be completed because a component is not responding

Discussion in 'AutoCAD' started by matt_1ca, Mar 29, 2005.

  1. matt_1ca

    matt_1ca Guest

    What is the usual strategy used by experts to avoid seeing the message: An Action cannot be completed because a component (..) is not responding.

    I am using VB to control AutoCAD and often I get a rather unwelcome message saying : An Action cannot be completed because a component (..) is not responding. Choose switch to activate the component and correct the problem.

    This happens when the user is supposed to input a value in AutoCAD document but instead makes the common mistake of clicking the VB form instead of clicking the AutoCAD document to input the value.

    100% of the time the problem is solved by simply clicking the button that says switch -- which may not be so much of a problem until 50 people continue to make that same mistake and have to click switch everytime just to correct the problem.

    Then it starts to be really awkward -- and they are starting to wonder why I did not design the program in the first place to click that switch button programmatically (knowing that it solves the problem 100% of the time) -- so that they do not ever have to see it.

    Right now this one has me stumped . Please guide me in any way you can.

    Thank you so much for all the kind help you can give.

    Matt
     
    matt_1ca, Mar 29, 2005
    #1
  2. matt_1ca

    bcoward Guest

    Matt,

    You indicated that...

    "This happens when the user is supposed to input a value in AutoCAD document but instead makes the common mistake of clicking the VB form instead of clicking the AutoCAD document to input the value."

    This is not the fault of the user but rather the fault of the programmer. In the design specification the devloper allows the user to interact this way because he/she does not force focus back to the AutoCAD document but rather leaves the user to make their own decision...not good.

    Change your code to manage the focus. Your testing reveals users will do the unexpected so plan for it.

    There are at least two things that I remember from programming school stuff.

    1 - The definition of pseudocode
    2 - A line a prof used....

    A well developed application is one that takes into account all that can't or shouldn't exist. This results in only what exists.


    Good luck,

    Bob Coward
    CADS, Inc
     
    bcoward, Mar 29, 2005
    #2
  3. If you're calling a GetXxxxx() method of the Utility object
    from another process, that process will be blocked until
    the call returns, which is when the user responds to the
    outstanding request for input (or cancels).

    The best way to deal with this, is to hide your VB app's
    window before calling the GetXxxxx() function, and then
    showing it when the call to same returns, or an error is
    raised by the call. This way, the user does not have the
    option of switching focus back to the controlling app until
    the satisfy the outstanding request in AutoCAD.
     
    Tony Tanzillo, Mar 29, 2005
    #3
  4. matt_1ca

    matt_1ca Guest

    This concept is pure genius!! Thanks Tony, I will implement it right away.

    Matt
     
    matt_1ca, Mar 29, 2005
    #4
  5. matt_1ca

    matt_1ca Guest

    Thanks Bob, I will keep that in mind

    Matt
     
    matt_1ca, Mar 29, 2005
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.