AutoCAD becomes visible during SendCommand

AutoCAD becomes visible during SendCommand

Anonymous
Not applicable
595 Views
2 Replies
Message 1 of 3

AutoCAD becomes visible during SendCommand

Anonymous
Not applicable

Hey all,

 

I'm not sure why, but when I call the sub:

Public Sub BurstAll(doc As AcadDocument)
    doc.SendCommand ("BURST ALL " & vbCr)
End Sub

AutoCAD suddenly becomes visible (which is not desired).  Before this line of code, the application is not visible.

 

I'm curious as to why AutoCAD decides to randomly become visible even It wasn't previously.  Is this a bug? Or is there another step that I need to perform before I can call "SendCommand"

 

Your help is greatly appreciated!

God Bless,

- Nick

0 Likes
596 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

PS: If anybody can reproduce this behavior, I'm sure it'd greatly help.  Thanks again!

0 Likes
Message 3 of 3

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> why AutoCAD decides to randomly become visible

Just as a guess: this command asks for a selection, so I see it not as randomly but more as correct that when a selection is requested the user get's the application visible.

 

You might try to first select the blocks to purge with putting all blockreferences into the PICKFIRST selection set before you start the command _BURST as then it's no user-interaction necessary then (as long as blockreferences are selected), but I have not tried it, wether AutoCAD pops to front or not. It's just an idea.

The other option would be to write your own burst so you don't need SendCommand.

 

- 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