Does anyone have any vb.net code to recover an AutoCAD 2013 drawing?
Solved! Go to Solution.
Solved by Virupaksha_aithal. Go to Solution.
Hi,
At present there is no programmatic way of recovering the drawing files. One method is to create a script file which can recover the drawing file and running the script through the code.
Script file could be like
Recover
c:\temp\test.scr
VB.net code
<CommandMethod("testrecover", CommandFlags.Session)> _
Sub testrecover()
Dim scriptPath As String = "c:\\temp\\recover.scr"
Dim oApp As AcadApplication = Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication
oApp.ActiveDocument.SendCommand("(command ""script"" """ & scriptPath & """)" & vbCrLf)
End Sub