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

Saving current drawing file.

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
RamanSBV
761 Views, 3 Replies

Saving current drawing file.

Hi,

 

Please help me on.. How to save current drawing file using save method.

 

 

Regards,

Raman

3 REPLIES 3
Message 2 of 4
_gile
in reply to: RamanSBV

Hi,

 

Did you look at: AutoCAD .NET Devemopper's Guide > Control the AutoCAD environment > Create, Open, Save and Close drawings > Create and Close a drawing ?

 



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 4
chiefbraincloud
in reply to: RamanSBV

The Database.Save method is "Not Implemented" at least through 2012.  It still says the same thing in the 2013 docs.

 

You have to use SaveAs, or if the drawing is open in the editor, and you are closing it after, I believe the Document.CloseAndSave method does work.  I just searched, and can't find any of my code that uses it, but I think it used it once in the past, but eventually changed that code to work on side databases instead of opening files into the editor.

Dave O.                                                                  Sig-Logos32.png
Message 4 of 4
jeff
in reply to: RamanSBV

http://www.theswamp.org/index.php?topic=42016.msg471429#msg471429

 

It is nice as in link to make it an extension method so you can just use Document.Save().

 

You can also find your answers @ TheSwamp

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