Whenver i try to save the active drawing's database I fail, how do you do it? must be something very simple i overlooked, but in the .net book i have saveas command is used like 3 times and they are not active drawings either way.
Something simple like this:
<CommandMethod("savetest", CommandFlags.UsePickSet)> _
Public Sub savetest()
Dim doc As Document = Application.DocumentManager.Open("C:\test\00F8NS01.dwg", False)
Dim db As Database = doc.Database
Dim ed As Editor = doc.Editor
doc.SendStringToExecute("qsave" & vbCr, False, False, False) ' doesn't work, not sure why
db.SaveAs(db.Filename, DwgVersion.Current) ' errors errors errors....
doc.CloseAndDiscard()
End Sub
Thanks.