redirect AutoCAD plot button

Discussion in 'AutoCAD' started by Nate Hunter, May 26, 2004.

  1. Nate Hunter

    Nate Hunter Guest

    I am trying to redirect the AutoCAD plot (_plot) command. I am using:

    Private Sub AcadDocument_BeginCommand(ByVal CommandName As String)
    If CommandName = "PLOT" Then ' Do my procedure
    End sub

    The problem I am having is when I am finished with my procedure the AutoCAD
    plot dialog still appears. How can I get this dialog to not show?

    Thanks in advance for your help.
     
    Nate Hunter, May 26, 2004
    #1
  2. Nate Hunter

    Ben Rand Guest

    I think you have to redefine the Plot command via LISP. You could add this
    or something similar to the acad.lsp file.

    (command "undefine" "Plot")
    (defun c:plot ()
    (vl-vbarun yourmacro)
    )

    Ben Rand
    CAD Manager
    CEntry Constructors & Engineers
     
    Ben Rand, May 26, 2004
    #2
  3. Nate Hunter

    Nate Hunter Guest

    thanks that is what I needed.


     
    Nate Hunter, May 26, 2004
    #3
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.