Message 1 of 8
ObjectDBX - OLE Hangs with VBA?

Not applicable
06-26-2009
02:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Guys,
Firstly thanks for reading. I have a small problem trying to test that ObjectDBX works on my system.
I am using excel, and have loaded the following Libraries:
AutoCAD 2007 Type Library
AutoCAD/ObjectDBX Common 17.0 Type Library
My Code is below. It simply hangs and excel sends a message every few mins that it is waiting for an OLE application. Any ideas?
I do not have Autocad installed but have DWG TrueView 2007, i have tried the code on the draftsmans PC who have autoCAD but to no avail.
Sub Test()
Dim DbxDoc As AxDbDocument
'Set DbxDoc = GetInterfaceObject("ObjectDBX.AxDbDocument.17")
Set DbxDoc = AcadApplication.GetInterfaceObject("ObjectDBX.AxDbDocument.17")
MsgBox "Test"
Set DbxDoc = Nothing
End Sub
Firstly thanks for reading. I have a small problem trying to test that ObjectDBX works on my system.
I am using excel, and have loaded the following Libraries:
AutoCAD 2007 Type Library
AutoCAD/ObjectDBX Common 17.0 Type Library
My Code is below. It simply hangs and excel sends a message every few mins that it is waiting for an OLE application. Any ideas?
I do not have Autocad installed but have DWG TrueView 2007, i have tried the code on the draftsmans PC who have autoCAD but to no avail.
Sub Test()
Dim DbxDoc As AxDbDocument
'Set DbxDoc = GetInterfaceObject("ObjectDBX.AxDbDocument.17")
Set DbxDoc = AcadApplication.GetInterfaceObject("ObjectDBX.AxDbDocument.17")
MsgBox "Test"
Set DbxDoc = Nothing
End Sub