.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I know user click discard or save when close the document?

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
kevinsir
438 Views, 3 Replies

How can I know user click discard or save when close the document?

I have a problem. I use AutoCAD 2010. I want  to know the use click save or discard button when close the document. I know the "Saved" Property of  AcadDocument can tell me the result. However, I could not use the AcadDocument Class. Because there is another plug-in, when i use the com class just like AcadDocument , it will tell some error.so i only can use .net Class just like Document. Is there any Proprty to get it ?

3 REPLIES 3
Message 2 of 4
hgasty1001
in reply to: kevinsir

Hi,

 

Use some document and/or database event to do that. see the docs on events both database and document .

 

Gaston Nunez

 

 

Message 3 of 4
kevinsir
in reply to: hgasty1001

Thanks for your reply!Can you give me some more information?

Message 4 of 4
kevinsir
in reply to: kevinsir

I think i have get the answer.

I use Application.GetSystemVariable("DBMOD"). when it is return 0  it is saved and when return 5 is discard 

Thanks!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost