If you want to save to the same file as the current document,
then I would suggest using the ActiveX Save() method.
{code}
public void MySave()
{
Document doc = Application.....MdiActiveDocument;
object oAcadDoc = doc.AcadDocument;
oAcadDoc.GetType().InvokeMember( "Save",
BindingFlags.InvokeMethod, null, oAcadDoc, null);
}
{code}
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message
news:6361385@discussion.autodesk.com...
Thanks for the reply. That gives me the same error - eFileInternalErr.
I have:
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
DocumentCollection dm = Application.DocumentManager;
Database db = dm.MdiActiveDocument.Database;
db.SaveAs();
When I build the solution the db.SaveAs() gets a blue squiggly and it says "No
overload for method 'SaveAs' takes '0' arguments"
If if do db.Save(), I get the same eFileInternalErr error but no blue squiggly.
I must be missing something but I cannot fathom what.
Patrick