Quitting AutoCAD via VB

Quitting AutoCAD via VB

Anonymous
Not applicable
331 Views
3 Replies
Message 1 of 4

Quitting AutoCAD via VB

Anonymous
Not applicable
When using the Quit() method in VB6 to close autocad 14.01, how can I
prevent AutoCAD from asking if I want to save changes to the current
drawing?

My application starts AutoCAD in an invisible mode, opens an existing
drawing, draws and then exports a dwf, then need to close down AutoCAD
without saving changes to the current drawing. I would like prevent AutoCAD
from prompting for saving the changes and just shut down so I don't have to
kill it via the Task Manager in NT 4.0.

Any ideas?

Roy Baker
0 Likes
332 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Hi
Try with that code:
' miDib is the AcadDocument which you have opened

miDib.Close False 'it closes the current drawing without saving any changes

Read about the Close method in the help.

I hope this helps.
Bye
Manuel


"Roy Baker" escribió en el mensaje
news:62A04537BFDEF1395BD82B585497825C@in.WebX.maYIadrTaRb...
> When using the Quit() method in VB6 to close autocad 14.01, how can I
> prevent AutoCAD from asking if I want to save changes to the current
> drawing?
>
> My application starts AutoCAD in an invisible mode, opens an existing
> drawing, draws and then exports a dwf, then need to close down AutoCAD
> without saving changes to the current drawing. I would like prevent
AutoCAD
> from prompting for saving the changes and just shut down so I don't have
to
> kill it via the Task Manager in NT 4.0.
>
> Any ideas?
>
> Roy Baker
>
>
0 Likes
Message 3 of 4

Anonymous
Not applicable
I cannot find any reference to this method and I get a runtime error when I
use it. This method sounds like an AutoCAD 2000 method, not an AutoCAD
14.01. I need an AutoCAD 14.01 solution.

Roy.


Manuel Rivero wrote in message
news:D6D21365A38C4AB35B3AC74468DBE211@in.WebX.maYIadrTaRb...
> Hi
> Try with that code:
> ' miDib is the AcadDocument which you have opened
>
> miDib.Close False 'it closes the current drawing without saving any
changes
>
> Read about the Close method in the help.
>
> I hope this helps.
> Bye
> Manuel
>
>
> "Roy Baker" escribió en el mensaje
> news:62A04537BFDEF1395BD82B585497825C@in.WebX.maYIadrTaRb...
> > When using the Quit() method in VB6 to close autocad 14.01, how can I
> > prevent AutoCAD from asking if I want to save changes to the current
> > drawing?
> >
> > My application starts AutoCAD in an invisible mode, opens an existing
> > drawing, draws and then exports a dwf, then need to close down AutoCAD
> > without saving changes to the current drawing. I would like prevent
> AutoCAD
> > from prompting for saving the changes and just shut down so I don't have
> to
> > kill it via the Task Manager in NT 4.0.
> >
> > Any ideas?
> >
> > Roy Baker
> >
> >
>
>
0 Likes
Message 4 of 4

Anonymous
Not applicable
Bad Joke. Get AutoCAD 2000 then.
"Roy Baker" wrote in message
news:9216265ED03E42E54BCE4B54119911EC@in.WebX.maYIadrTaRb...
> I cannot find any reference to this method and I get a runtime error when
I
> use it. This method sounds like an AutoCAD 2000 method, not an AutoCAD
> 14.01. I need an AutoCAD 14.01 solution.
>
> Roy.
>
>
> Manuel Rivero wrote in message
> news:D6D21365A38C4AB35B3AC74468DBE211@in.WebX.maYIadrTaRb...
> > Hi
> > Try with that code:
> > ' miDib is the AcadDocument which you have opened
> >
> > miDib.Close False 'it closes the current drawing without saving any
> changes
> >
> > Read about the Close method in the help.
> >
> > I hope this helps.
> > Bye
> > Manuel
> >
> >
> > "Roy Baker" escribió en el mensaje
> > news:62A04537BFDEF1395BD82B585497825C@in.WebX.maYIadrTaRb...
> > > When using the Quit() method in VB6 to close autocad 14.01, how can I
> > > prevent AutoCAD from asking if I want to save changes to the current
> > > drawing?
> > >
> > > My application starts AutoCAD in an invisible mode, opens an existing
> > > drawing, draws and then exports a dwf, then need to close down AutoCAD
> > > without saving changes to the current drawing. I would like prevent
> > AutoCAD
> > > from prompting for saving the changes and just shut down so I don't
have
> > to
> > > kill it via the Task Manager in NT 4.0.
> > >
> > > Any ideas?
> > >
> > > Roy Baker
> > >
> > >
> >
> >
>
>
0 Likes