.NET

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

Saving current drawing file.

304 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,114
Registered: ‎04-29-2006
Message 2 of 4 (280 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 (279 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: 335
Registered: ‎05-12-2009
Message 4 of 4 (269 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
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!