Set last command

Discussion in 'AutoCAD' started by xxxTed Schaefer, Apr 25, 2004.

  1. I have a vba routine that has to resort at the last moment to a sendcommand
    (command "-insert.....
    This puts the in Insert command into AutoCAD's LastCommand memory instead of
    the
    original command. So the user can't repeat the command by hitting enter or
    space bar.
    Is there any way to put to set the LastCommand memory to original command?

    - Ted
     
    xxxTed Schaefer, Apr 25, 2004
    #1
  2. Unfortunately not. This has always been a problem with
    SendCommand(), because AutoCAD thinks the user is entering
    the command.
     
    Tony Tanzillo, Apr 25, 2004
    #2
  3. xxxTed Schaefer

    Ed Jobe Guest

    Why can't you use the InsertBlock method?
     
    Ed Jobe, Apr 26, 2004
    #3
  4. You can't drag a block into place with thisdrawing.modelspace.insertblock
    Actually, I do use it after I get the insertion point of the shadow block
    just inserted with the send command.

    - Ted
     
    xxxTed Schaefer, Apr 26, 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.