GetInterfaceObject - ObjectDBX problem

GetInterfaceObject - ObjectDBX problem

Anonymous
Not applicable
407 Views
4 Replies
Message 1 of 5

GetInterfaceObject - ObjectDBX problem

Anonymous
Not applicable
Hi I'm using A2005 I sure it's something stupid, but anyone have ideas why does the following give a Type Mismatch error? Dim dbxdoc As AxDbDocument Set dbxdoc = AcadApplication.GetInterfaceObject("ObjectDBX.AxDbDocument.16") TIA Dave F.
0 Likes
408 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Try this:
Dim DbxDoc As AXDB16Lib.AxDbDocument
Set DbxDoc = GetInterfaceObject("ObjectDBX.AxDbDocument")

Hope it helps
0 Likes
Message 3 of 5

Anonymous
Not applicable
Unfortunately, it doesn't. but thanks for replying. I'm getting a 'user defined type not defined' I have axdb16enu.tlb referenced. This used to work in ver 15.06. Dim DbxDoc As AxDbDocument Set dbxdoc = AcadApplication.GetInterfaceObject("ObjectDBX.AxDbDocument") but does since i had 2005 installed along side. This leads me to think there maybe a clash between the two versions. Could this be the problem? Cheers Dave F. "sdanis" wrote in message news:22490815.1101992620237.JavaMail.jive@jiveforum1.autodesk.com... > Try this: > Dim DbxDoc As AXDB16Lib.AxDbDocument > Set DbxDoc = GetInterfaceObject("ObjectDBX.AxDbDocument") > > Hope it helps
0 Likes
Message 4 of 5

Anonymous
Not applicable
Got it sorted! I'd stupidly left an old Objectdbx reference ticked & above the .16 version in the list. Doh! "sdanis" wrote in message news:22490815.1101992620237.JavaMail.jive@jiveforum1.autodesk.com... > Try this: > Dim DbxDoc As AXDB16Lib.AxDbDocument > Set DbxDoc = GetInterfaceObject("ObjectDBX.AxDbDocument") > > Hope it helps
0 Likes
Message 5 of 5

Anonymous
Not applicable
How about Set DbxDoc = AcadApplication.GetInterfaceObject("ObjectDBX.AxDbDocument.16") -- Saludos, Ing. Jorge Jimenez, SICAD S.A., Costa Rica "Dave F." wrote in message news:41af6721_1@newsprd01... > Unfortunately, it doesn't. but thanks for replying. > I'm getting a 'user defined type not defined' > > I have axdb16enu.tlb referenced. > > This used to work in ver 15.06. > Dim DbxDoc As AxDbDocument > Set dbxdoc = AcadApplication.GetInterfaceObject("ObjectDBX.AxDbDocument") > > but does since i had 2005 installed along side. > This leads me to think there maybe a clash between the two versions. > Could this be the problem? > > Cheers > Dave F. > > > "sdanis" wrote in message > news:22490815.1101992620237.JavaMail.jive@jiveforum1.autodesk.com... >> Try this: >> Dim DbxDoc As AXDB16Lib.AxDbDocument >> Set DbxDoc = GetInterfaceObject("ObjectDBX.AxDbDocument") >> >> Hope it helps > >
0 Likes