- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I came over the issue, that any DWG drawing file exported/saved via .NET API to a earlier DwgVersion (e.g. DwgVersion.AC1014) always shows an error message during open.
The Error message (also see screenshot below) appears if I choose to export to AutoCAD Version 2014 (DwgVersion.AC1014).
Note:
The same code implementation does not produce this issue when exported to AutoCAD 2017 version (or same) version ( DwgVersion.AC1027)
Dim obj As Object = Application.GetSystemVariable("DBMOD")
'' Check the value of DBMOD, if 0 then the drawing has not been changed
If Not (System.Convert.ToInt16(obj) = 0) Then
If MsgBox("Do you wish to save this drawing?", MsgBoxStyle.YesNo, "Save Drawing") = MsgBoxResult.Yes Then
Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument
acDoc.UpgradeDocOpen()
acDoc.Database.SaveAs(acDoc.Name, True, DwgVersion.AC1014, acDoc.Database.SecurityParameters)
End If
Else
logLine("no doc changes")
End If
Can anyone help me with this?
Does anyone expirience the same issue?
With best regards
Patrick
Solved! Go to Solution.