Dumb Question: How do you close AutoCAD in VB?

Dumb Question: How do you close AutoCAD in VB?

Anonymous
Not applicable
335 Views
2 Replies
Message 1 of 3

Dumb Question: How do you close AutoCAD in VB?

Anonymous
Not applicable
This is a stand-alone application. I've got two AC2k documents open. I can close THEM, but, if I exit my program, I've got an open session of AC2k on my Task Manager.

What's the code for closing AC2k completely in stand-alone VB? My app object name is, of course, acadApp . . . creative, aren't I?
0 Likes
336 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
You have to do a couple of things. First, make sure
you aren't in the middle of a command. Then close the application, acadApp.Quit.
Finally, destroy the object you created, Set acadApp =
Nothing.


--
Ed
--


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
This
is a stand-alone application. I've got two AC2k documents open. I can close
THEM, but, if I exit my program, I've got an open session of AC2k on my Task
Manager.

What's the code for closing AC2k completely in stand-alone VB? My app
object name is, of course, acadApp . . . creative, aren't
I?

0 Likes
Message 3 of 3

Anonymous
Not applicable
acadapp.quit worked like a charm . . . I tried "end" and "close" . . . should have kept guessing!

THANKS!
0 Likes