How to close AutoCAD from other application
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 to close AutoCAD from other application

 
Post new topic   Reply to topic    CADForums.net Forum Index -> AutoCAD
Author Message
Bendik Engebretsen
Guest





Posted: Thu Dec 02, 2004 6:39 pm    Post subject: How to close AutoCAD from other application Reply with quote

Is there a any command that will close the AutoCAD application itself ?
What about a command to close a document without being asked to save changes
?

Thanks!

Bendik

Back to top
CS
Guest





Posted: Fri Dec 03, 2004 1:25 am    Post subject: Re: How to close AutoCAD from other application Reply with quote

in VBA

AcadApplication.ActiveDocument.Close False
' to close the drawing without saving

AcadApplication.ActiveDocument.Close True
'to close and save a drawing

AcadApplication.ActiveDocument.Close True, "C:\Some Path\Copy.dwg
'to close and save a drawing as for SaveAs Copy or Saving a drawing that
'was just created


AcadApplication.Quit
'seems self explanitory.


Regards,
Corey


"Bendik Engebretsen" <kidneb.nesterbegne@tfoshcet.on> wrote in message
news:con5ur$goh$1@news.tdcnorge.no...
Quote:
Is there a any command that will close the AutoCAD application itself ?
What about a command to close a document without being asked to save
changes
?

Thanks!

Bendik

Back to top
Bendik Engebretsen
Guest





Posted: Fri Dec 03, 2004 2:30 pm    Post subject: Re: How to close AutoCAD from other application Reply with quote

Thanks! But, is there a way to do the same from DDE ?

Bendik

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> AutoCAD 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