Standard approach is to turn of command echo by setting system variable cmdecho to 0, and back on at the end of script (explained by @leeminardi ). With some command changing system variable NOMUTT also can be used bu with consequences a s explained by @rapidcad . When using command COMMAND you also have to take care to turn of object snaps by changing system variable osnap or using osnap parameter "_non" before each point as
(command "_line" "_non" p1 "_non" p2)
Third approach is to avoid using command COMMAND or VL-CMDF and and use autolisp or visual lisp commands to create autocad entity for example:
(defun myline (p1 p2) (entmake (list(cons 0 "LINE") (cons 10 p1) (cons 11 p2))))
;In program you call function as
(myline p1 p2)
(myline p3 p4)
(myline p5 p6)
In this process you can set other properties like color, layer....... Using autolisp functions doesn't produce console echoes.
Here are codes needed to create a line object and here are common group codes for all entities.
For example (cons 8 "0") sets creation layer to "0".
Miljenko Hatlak

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.