.NET

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

Saving current drawing file.

280 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

*Expert Elite*
Posts: 1,979
Registered: ‎04-29-2006
Message 2 of 4 (256 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: 750
Registered: ‎02-13-2008
Message 3 of 4 (255 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: 319
Registered: ‎05-12-2009
Message 4 of 4 (245 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

You are not logged in.

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

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

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

Ask the Community