.NET

Reply
Mentor
amitk_189
Posts: 232
Registered: ‎12-15-2011
Message 1 of 3 (114 Views)

Task Scheduling

114 Views, 2 Replies
08-06-2012 02:36 AM

Am trying to extract data out of AutoCAD Specific drawing at a particular date and time. And this project am doing from quite long time. But the problem is how can i specify time and date to autocad and at that particular time it has to extract data. My current code is in VB.net where i am manually specifying the file, yet its taking the autocad template as its source

 

 

Dim Files() As String

Dim Path As String = "D:\Cad Drawings"
Dim DiffClass As New Class1
Dim acDocMgr As DocumentCollection = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager

Dim CurrentFileCount As Integer = 0


Files = Directory.GetFiles(Path, "*.dwg", SearchOption.AllDirectories)
For i As Integer = 0 To Files.Length - 1
Dim CurrentFile As String = Files(i)
If CurrentFile.Contains("Drawing") Or CurrentFile.Contains("DWG") Then
If CurrentFile.Substring(CurrentFile.LastIndexOf(".") + 1) = "dwg" Then

acDocMgr.Open(CurrentFile, False)

 

 

Till here i do operation and at certain time i open dwg and extract data. 

 

Is there any option to do so.

 

 

With Warm Regards

Amit

 

ADN Support Specialist
Balaji_Ram
Posts: 660
Registered: ‎03-21-2011
Message 2 of 3 (77 Views)

Re: Task Scheduling

08-09-2012 05:31 AM in reply to: amitk_189

Hi Amit,

 

Your question is not very clear.

What do you mean by "extracting data at a particular date and time" ?

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Valued Mentor
gasty1001
Posts: 438
Registered: ‎04-11-2010
Message 3 of 3 (73 Views)

Re: Task Scheduling

08-09-2012 07:22 AM in reply to: amitk_189

Hi,

 

May be you can add a trigger on some of the save database events (BeginSave or SaveComplete), and set the autosave to a given period, but this need another monitor on the Autosave variable (SAVETIME) in order to avoid user changes.

 

Gaston Nunez

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community