.NET

Reply
Valued Contributor
RamanSBV
Posts: 88
Registered: ‎02-28-2012
Message 1 of 4 (298 Views)
Accepted Solution

Saving current drawing file.

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

Hi,

 

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

 

 

Regards,

Raman

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().

 

*Expert Elite*
_gile
Posts: 2,084
Registered: ‎04-29-2006
Message 2 of 4 (274 Views)

Re : Saving current drawing file.

08-22-2012 07:53 AM 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
*Expert Elite*
chiefbraincloud
Posts: 753
Registered: ‎02-13-2008
Message 3 of 4 (273 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
jeff
Posts: 330
Registered: ‎05-12-2009
Message 4 of 4 (263 Views)

Re: Saving current drawing file.

08-22-2012 01:45 PM 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
Announcements
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 or visit the Installation and Licensing Forum to get help installing your software.