Author Topic: Hiding the text in the command line  (Read 1334 times)

0 Members and 1 Guest are viewing this topic.

iliekater

  • Guest
Hiding the text in the command line
« on: May 23, 2009, 02:54:00 PM »
I need some help  :oops: Is there a way to hide the text in the command line ? I need this becouse I frequently use the SendCommand statement from VBA to send lisp code in the command line to be executed , which is very annoying . I only need to display the prompts for the user , not to print every line VBA send in the command line :
(setq a 1.1)
(setq b 3.3)
(command bla bla bla bla ....)
......
Is there any hope ?

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Hiding the text in the command line
« Reply #1 on: May 23, 2009, 03:00:26 PM »
Try CMDECHO 0
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Daniel J. Ellis

  • Swamp Rat
  • Posts: 811
Re: Hiding the text in the command line
« Reply #2 on: May 23, 2009, 06:37:52 PM »

To turn command echo and muttering off:

(DEFUN ncmd ()
   (SETVAR CMDECHO 0)
   (SETVAR NOMUTT 1)
)

To turn them back on again:
(DEFUN ycmd ()
   (SETVAR CMDECHO 1)
   (SETVAR NOMUTT 0)
)

I love that AutoCAD mutters to itself!

Useage:
(NCMD) to turn everything off, and
(YCMD) to turn it back on

dJE
===
dJE