Commands May not be nested more than 4 deep error.

Discussion in 'AutoCAD' started by Rodney, May 23, 2004.

  1. Rodney

    Rodney Guest

    Hey Guys,
    I have been trying to get the answer to this problem for a long time now. I
    have several routines that that I am using visual lisp to create transparent
    routines that I can use inside any command. However if you cancel out these
    commands it will casue this error. As you know this does not allow you to
    save your drawing and any changes made since last autosave are lost. What
    is the the answer to this annoying problem?

    Thanks
    Rodney
     
    Rodney, May 23, 2004
    #1
  2. Rodney

    Jeff Mishler Guest

    As has been discussed many times for a long time now you cannot use
    externally defined commands inside a lisp routine by calling them with
    (command "blah"). These external commands must be called like this (c:blah
    args). See the end of the Vlisp reference for more details or do a search in
    this group for some specific samples.

    If this is NOT the problem you are experiencing, please post some code and
    exact instructions to duplicate, someone may be able to track it down.

    Jeff
     
    Jeff Mishler, May 24, 2004
    #2
  3. Try adding this to your error handler, which is called
    when you cancel out of your routine:

    (repeat 3 (command))
     
    Tony Tanzillo, May 24, 2004
    #3
  4. Rodney

    Rodney Guest

    Thanks Guys.
    I will post code as soon as my computer comes in. I will try your
    suggestion Tony.
     
    Rodney, May 24, 2004
    #4
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.