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
464 Views
2 Replies
Message 1 of 3

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
465 Views
2 Replies
Replies (2)
Message 2 of 3

pendean
Community Legend
Community Legend
0 Likes
Message 3 of 3

Anonymous
Not applicable

It's been a long time since I used VBA in ACAD, but to "hide" what was happening on screen to avoid watching a blur of activity, I used to put a line of code in after declaring & setting Variables:
application.screenupdating=false

Then after all code in that sub has run:

application.screenupdating=true

I never paid any attention to the command line to see if it hid that though.

I use this in Excel macros that I still use extensively to simply make a "cleaner look".

Hope it helps.

0 Likes