Task Scheduling
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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