Hi,
I tried checking from google to access OD table in AutoCad Standard but failed to find?
Is it possible to Access the OD Tables in AutoCad Standard using VBA Com, Lisp or .Net?
Need your advice.
Thanks and regards,
Alex
|
|
|
Hi,
I tried checking from google to access OD table in AutoCad Standard but failed to find?
Is it possible to Access the OD Tables in AutoCad Standard using VBA Com, Lisp or .Net?
Need your advice.
Thanks and regards,
Alex
No, you need to have Map 3D installed to work with Object Data.
C:> ED WORKING.... ▒
AutoCad Map is now running. I tried to run the sample given but it crashes when I tried to retrieve the data.
I'm using AutoCad Map 3D 2016 (SP2) and VBA Enabler.
Sample code below:
Dim theMap As AcadMap
Dim theODTableName As String
Dim theODTable As odTable
Dim theODRecs As ODRecords
Dim theODRec As odRecord
Dim theObj As Object
Dim theBool As Boolean
'check to see if Object Data Table exists
theODTableName = "SERVICECORRIDOR"
Set theMap = ThisDrawing.Application.GetInterfaceObject("AutoCADMap.Application")
MsgBox theMap.Projects(ThisDrawing).ODTables.count
Set theODTable = theMap.Projects(ThisDrawing).ODTables.Item(theODTableName) '<- It crashes in this area
If theODTable Is Nothing Then
MsgBox "Object Data Table does not exist."
Exit Sub
End If