auto SAVE drawing when user closes it
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
auto SAVE drawing when user closes it

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






Posted: Fri Apr 29, 2005 12:10 am    Post subject: auto SAVE drawing when user closes it Reply with quote

user closes the drawing (unsaved). i want to make sure that drawing
is saved no matter what, even if user said 'no' on 'save file?'
dialog... i know it can be done in objectarx (and i've tried), but it's
too complicated. anyone knows quick (or not quick but working) way to
do that? thanks for any suggestions or comments...

why do i need that: we're doing GIS, so changes in drawing are
reflected in database, and if drawing is not saved - we have
inconsistency...

Back to top
Guest






Posted: Tue May 10, 2005 4:10 pm    Post subject: Re: auto SAVE drawing when user closes it Reply with quote

In VBA, open the VBA editor and in ThisDrawing under the AutoCAD
objects in any project.

Create the BeginClose event and place the code ThisDrawing.Save

eg.
Private Sub AcadDocument_BeginClose()

ThisDrawing.Save
End Sub

Regardless of what the user chooses 'Yes' or 'No' to saving the file
upon closing the drawing, the drawing will be saved


I hope this helps

Anthony Ryan
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