AutoCAD Land Desktop (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Command line Messages

6 REPLIES 6
Reply
Message 1 of 7
rbowser
268 Views, 6 Replies

Command line Messages

I have created a simple lisp file to change some layer properties - color and linetype. The problem I am having is that the layer command returns a message "No matching layer names found" that I don't want to display on the command line. How do I tell the layer command to be 'silent' or not display the messages?
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: rbowser

1. Look into the Sysvar CMDECHO

wrote in message news:5488192@discussion.autodesk.com...
I have created a simple lisp file to change some layer properties - color
and linetype. The problem I am having is that the layer command returns a
message "No matching layer names found" that I don't want to display on the
command line. How do I tell the layer command to be 'silent' or not display
the messages?
Message 3 of 7
rbowser
in reply to: rbowser

I set cmdecho to 0 but that does not stop these messages from returning from the layer command. I suspect I have to process the returned message somehow but I don't know...
Message 4 of 7
Anonymous
in reply to: rbowser

How about checking if the layer exists before running the command and only
issuing the command for layers that are actually in the drawing? Or look
into not using the command line, use lisp or ActiveX methods instead.

wrote in message news:5488233@discussion.autodesk.com...
I set cmdecho to 0 but that does not stop these messages from returning from
the layer command. I suspect I have to process the returned message somehow
but I don't know...
Message 5 of 7
Anonymous
in reply to: rbowser

NOMUTT maybe.

wrote in message news:5488233@discussion.autodesk.com...
I set cmdecho to 0 but that does not stop these messages from returning from
the layer command. I suspect I have to process the returned message somehow
but I don't know...
Message 6 of 7
rbowser
in reply to: rbowser

I tried it ...but NOMUTT doesn't work for these messages.
Message 7 of 7
Anonymous
in reply to: rbowser

Hi Rick,

I use this in all our menus to suppress the command line output of a call to
a VBA macro.

You could pass it the return string of the message - or modify it a bit so
you simply pass it a number.

Note the setvar on Filedia which is irrelevant to the exercise, but helps to
limit problems with dialog boxes for the ignorant.

(defun CADAppsCleanCommandLine (spFunctionString)
(setvar "FileDia" 1)
(setq n (strlen spFunctionString))
(repeat n (princ (chr 8))) (repeat n (princ (chr 32)))
(princ)
)


--

Laurie Comerford
CADApps
www.cadapps.com.au
www.civil3Dtools.com
wrote in message news:5488343@discussion.autodesk.com...
I tried it ...but NOMUTT doesn't work for these messages.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report