.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Recover Drawing

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
peteh
733 Views, 2 Replies

Recover Drawing

Does anyone have any vb.net code to recover an AutoCAD 2013 drawing?

2 REPLIES 2
Message 2 of 3
Virupaksha_aithal
in reply to: peteh

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



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

Message 3 of 3
peteh
in reply to: peteh

 

I can make this work...  thank you.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost