Message 1 of 26
Not applicable
01-14-2014
11:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
whenever I try to save my curret drawing as I will get this error.
I was looking here what could be the issue but no success yet.
Do you now what could be the problem?
Many thanks.
I used standard method;
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.Runtime
<CommandMethod("SaveActiveDrawing")> _
Public Sub SaveActiveDrawing()
Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument
Dim strDWGName As String = acDoc.Name
Dim obj As Object = Application.GetSystemVariable("DWGTITLED")
'' Check to see if the drawing has been named
If System.Convert.ToInt16(obj) = 0 Then
'' If the drawing is using a default name (Drawing1, Drawing2, etc)
'' then provide a new name
strDWGName = "c:\MyDrawing.dwg"
End If
'' Save the active drawing
acDoc.Database.SaveAs(strDWGName, True, DwgVersion.Current, _
acDoc.Database.SecurityParameters)
End Sub
Solved! Go to Solution.