LAST COMMAND

Discussion in 'AutoCAD' started by john m, May 20, 2004.

  1. john m

    john m Guest

    Hello,

    Is there some way to SET the last command? I have a program that has a
    button to insert a block using utility.sendcommand.
    Problem is that i want the user to be able to hit return to repeat last
    command (the command that brings up the dialog)
    Of course ACAD thnks the return is to repeat the Insert command which is not
    what i want.

    thanks for any suggestion

    jm
     
    john m, May 20, 2004
    #1
  2. There's no way to set the LAST command, and this is one
    of several problems associated with the SendCommand()
    kludge.

    However, AcadX (at the URL below) does provide advanced
    command line functionality (the ability to define your
    own commands, and execute AutoCAD commands without the
    use of sendcommand), and solves this and a number of
    related problems.

    See the included InsertDemo.zip sample for details.
     
    Tony Tanzillo, May 20, 2004
    #2
  3. john m

    john m Guest

     
    john m, May 20, 2004
    #3
  4. john m

    A Seidel Guest

    I think you want to:

    .Hide your dialog
    .Sendcommand
    .Show your dialog.

    That will bring the dialog back up to where it was before the button
    was pressed.
     
    A Seidel, May 21, 2004
    #4
  5. john m

    navi800 Guest

    try calling the routine using a lisp command added into the acad.lsp file.
    then use that command in the button.

    example: add this to the acad2000doc.lsp [or what ever your current version
    is, ]

    (defun c:"keybord command here"()
    (command "-VBARUN" " name of routine here ")
    )
     
    navi800, May 26, 2004
    #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.