.NET

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

Saving current drawing file.

317 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,133
Registered: ‎04-29-2006
Message 2 of 4 (293 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 (292 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: 338
Registered: ‎05-12-2009
Message 4 of 4 (282 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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.