Valued Contributor
Posts: 86
Registered: ‎02-28-2012
Message 1 of 4 (294 Views)
Accepted Solution

Saving current drawing file.

294 Views, 3 Replies
08-21-2012 09:59 PM



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





*Expert Elite*
Posts: 2,078
Registered: ‎04-29-2006
Message 2 of 4 (270 Views)

Re : Saving current drawing file.

08-22-2012 07:53 AM in reply to: RamanSBV



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
*Expert Elite*
Posts: 752
Registered: ‎02-13-2008
Message 3 of 4 (269 Views)

Re: Saving current drawing file.

08-22-2012 07:55 AM 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
Valued Mentor
Posts: 325
Registered: ‎05-12-2009
Message 4 of 4 (259 Views)

Re: Saving current drawing file.

08-22-2012 01:45 PM in reply to: RamanSBV



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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community