Stop UNDEFINE msgs to cmd prompt @ startup

Discussion in 'AutoCAD' started by Mark Sanchez, Feb 28, 2004.

  1. Mark Sanchez

    Mark Sanchez Guest

    I have used UNDEFINE for a few commands in my acad.lsp file. However, I
    don't like the fact that the undefined commands get "advertised" (ie -
    written to the command prompt) during startup like so:

    UNDEFINE Enter command name: VBAMAN UNDEFINE Enter command name: VBAIDE
    UNDEFINE Enter command name: VBARUN UNDEFINE Enter command name: PLOT

    Is there any way to supress this behavior? I've tried putting a (princ)
    after the calls but to no avail. Any other ideas?

    TIA,

    Mark Sanchez
     
    Mark Sanchez, Feb 28, 2004
    #1
  2. Mark Sanchez

    Jim Claypool Guest

    (setvar "cmdecho" 0)
     
    Jim Claypool, Feb 28, 2004
    #2
  3. Mark,

    1. save the value of CMDECHO
    2. set CMDECHO to zero
    3. undefine your commands
    4. restore the value of CMDECHO

    Depending on what you are trying to undefine it may be
    necessary to define a new 'dummy' command with the
    same name rather than undefine the existing command.
    I've found that ARX commands can't be undefined until
    they are initiated at least once.

    Hope this helps.
     
    Jason Piercey, Feb 28, 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.