"Command" IsAvailable

Discussion in 'AutoCAD' started by 3ABTPA, Oct 7, 2004.

  1. 3ABTPA

    3ABTPA Guest

    Is there a function in VLisp to check if certain commands/functions are
    available or not.

    Here is a problem:

    I have set of procedures that apply in case of error, so error function has
    a call to a function that has all these procedures. Among procedures one
    uses COMMAN function. Now, when user closes a drawing and responses not to
    save it, AutoCAD cancels something, I see that in the command line (Command:
    *Cancel*), and then I have no idea why, error function is triggered. At that
    point, maybe, COMMAN is not available or locked (because AutoCAD is going to
    close a drawing), and error occurs inside the error function. Unfortunately
    VLR-DWG-Reactor happened after all and it does not help at all. I would like
    to have a function to check availability of COMMAN function (in my case).

    Thanks,
     
    3ABTPA, Oct 7, 2004
    #1
  2. 3ABTPA

    Doug Broad Guest

    In general, commands are not available in reactors. Use
    vlisp activeX functions to accomplish what you want.
    Somethings are not possible anyway when closing a drawing.

    Watch your spelling BTW. If you are typing in (comman .....) you will get
    an error anyway. The function is "command".
     
    Doug Broad, Oct 8, 2004
    #2
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.