VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Suppress "Command: "

3 REPLIES 3
Reply
Message 1 of 4
dlinford
224 Views, 3 Replies

Suppress "Command: "

As I execute some VBA code with prompts I get the "Command: " before my prompts. This is an example as it executes:

Command: mr

Enter Room Label Line 3: five

Command: Enter Room Label Line 2: ten

Command: Enter Ceiling Text :fifteen
-----

How do a get rid of the "Command: " at the beginning of each line?

David
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: dlinford

I am not sure if there is a correct way to do this but I can share with you
how I do it. When I enter the block of code that will be executing a
statement to the command line, I will always force a VbCrLf infront of the
string I am using as a prompt. I have also forced a VbCrLf at the prompt
just to before and after send commands and other routines that make the
'command:' string pop-up. It works. There may be better ways of doing
this.
Good Luck
--
CB



wrote in message news:5573799@discussion.autodesk.com...
As I execute some VBA code with prompts I get the "Command: " before my
prompts. This is an example as it executes:

Command: mr

Enter Room Label Line 3: five

Command: Enter Room Label Line 2: ten

Command: Enter Ceiling Text :fifteen
-----

How do a get rid of the "Command: " at the beginning of each line?

David
Message 3 of 4
Anonymous
in reply to: dlinford

Start your VBA macro with the vla-runmacro
LISP function, instead of VBARUN or vla-vbarun.

Search this newsgroup for 'vla-runmacro' for
more info on this.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:5573799@discussion.autodesk.com...
As I execute some VBA code with prompts I get the "Command: " before my prompts. This is an example as it executes:

Command: mr

Enter Room Label Line 3: five

Command: Enter Room Label Line 2: ten

Command: Enter Ceiling Text :fifteen
-----

How do a get rid of the "Command: " at the beginning of each line?

David
Message 4 of 4
cgay
in reply to: dlinford

You can also try to turn off muttering.
Set Nomutt=1 if I remember. You can try this on the AutoCAD command line to see what it does. Just remember to set it back to 0 when your code completes.

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

Post to forums  

Autodesk Design & Make Report

”Boost