Message 1 of 2
VB-Autocad relationship

Not applicable
02-15-2008
01:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I wrote a little app in VB that will insert blocks having specific values from an excel file. Everything works fine if the autocad is idle, but if there is an active command like line command, of course the vb exe will give me a message that Autocad is busy. I have my reasons to run this application outside of Autocad, as a separate exe file. My question is: can I somehow check from the exe file if there is an active command running in Autocad and cancel it (like esc key) and then continue with block placing? Or, if Autocad is busy, can I "convert" this into a message(from VB) and than wait until AutoCad is idle? My feeling is that I cannot do this, but I will appreciate any opinion.
Thanks
I wrote a little app in VB that will insert blocks having specific values from an excel file. Everything works fine if the autocad is idle, but if there is an active command like line command, of course the vb exe will give me a message that Autocad is busy. I have my reasons to run this application outside of Autocad, as a separate exe file. My question is: can I somehow check from the exe file if there is an active command running in Autocad and cancel it (like esc key) and then continue with block placing? Or, if Autocad is busy, can I "convert" this into a message(from VB) and than wait until AutoCad is idle? My feeling is that I cannot do this, but I will appreciate any opinion.
Thanks