Run a AutoCAD command using vba but don't show that in command line

Run a AutoCAD command using vba but don't show that in command line

mrhasanLCLPE
Explorer Explorer
1,544 Views
5 Replies
Message 1 of 6

Run a AutoCAD command using vba but don't show that in command line

mrhasanLCLPE
Explorer
Explorer

Hello all,
I want to run a AutoCAD command using vba like,

    ThisDrawing.SendCommand ("RemoveSizeGroup ")

This is a custom command & there is lot's of custom command I used in my macro.

So, I don't want to display those command in command line.

Capture.JPG
How can I implement this ?

0 Likes
1,545 Views
5 Replies
Replies (5)
Message 2 of 6

nucliabrasil
Advocate
Advocate

Tried this way ?

ThisDrawing.SendCommand  vbcr &  RemoveSizeGroup & vbcr 

 

0 Likes
Message 3 of 6

nucliabrasil
Advocate
Advocate

Sorry!

ThisDrawing.SendCommand  "RemoveSizeGroup" & vbCr

0 Likes
Message 4 of 6

Ed__Jobe
Mentor
Mentor

As the name of the SendCommand method implies, an acutal command is sent to the command line. VBA does not execute the command. It runs from the command line after all your vba code finishes. Thus, there is no way to stop it. The only thing you can do is replicate what the command does via vba.

Ed


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.
How to post your code.

EESignature

0 Likes
Message 5 of 6

mrhasanLCLPE
Explorer
Explorer

It's not working.

0 Likes
Message 6 of 6

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

you can first try to disable CMDECHO, if that does not help you can change the setting of  NOMUTT to 1 (>>>details<<<), but take care to reset this value when your macro finished, otherwise the user would not see any input in the command-line any more.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes