How can I have my VBA wait until Autocad is quiescent?
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
How can I have my VBA wait until Autocad is quiescent?

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
Guest






Posted: Fri Sep 02, 2005 4:10 pm    Post subject: How can I have my VBA wait until Autocad is quiescent? Reply with quote

I have a VB6 prog that runs and fires a invisible instance of Autocad
2000i. The VB has detection code to prevent it from running if there is
an instance of AutoCad already running. I would like to work that back
the other way as well. I want to prevent the user from running an
instance of AutoCad if the VB fired instance is already running. I can
detect the already running instance (fired from the VB), and I can put
up a note to the user to please close the instance of AutoCad that they
just fired, but I get a "Autocad is busy.." notice when I try to close
it. That's because AutoCad hasn't finished it's initialization routine.
Now to the question: Is there some way to wait for AutoCad to get
quiescent before putting up a message.? I have tried loops (keeps
autocad busy), do events (doesn't help). BTW the DVB has a ACADStartup
routine already. It limits me because any dialog I try there is seen
when the VB instance is started.

Any help would be appreciated
Thanks
JWatkins

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB