OK, "ObjectDBX.AxDbDocument.16" is the ticket. Thanks very much!
"R. Robert Bell" wrote in message
news:4EE540C75AC0DAF66051D46C38572303@in.WebX.maYIadrTaRb...
> Yah gotta do versioning, baby! With A2k4, ObjectDBX is already registered.
> So it should be as simple as:
>
> (if (> (atoi (getvar "AcadVer")) 15)
> (setq *dbxDoc* (vla-GetInterfaceObject
> (vlax-get-acad-object) "ObjectDBX.AxDbDocument.16"))
> (setq *dbxDoc* (vla-GetInterfaceObject
> (vlax-get-acad-object) "ObjectDBX.AxDbDocument")))
>
>
>
> --
> R. Robert Bell, MCSE
> www.AcadX.com
>
>
> "Ken Krupa" wrote in message
> news:61AD27A4076A05C88BCE0715D4BFFB71@in.WebX.maYIadrTaRb...
> | Did you ever resolve this Jim? I just ran into the same issue. I've been
> | using some code that came from you (Thank you!) for R2002. Your function
> | jb:OpenDbxDocument first calls RegisterObjectDBX (with thanks to Tony
> | Tanzillo), which sees that ObjectDBX has been registered by looking in
the
> | registry:
> | (vl-registry-read "HKEY_CLASSES_ROOT\\ObjectDBX.AxDbDocument\\CLSID")
> |
> | But it's AxDb15.dll that has been registered. I'm not clear on how they
> can
> | coexist. Your jb:OpenDbxDocument function then proceeds to do this:
> | (setq
> | *dbxDoc* (vla-GetInterfaceObject
> | (vlax-get-acad-object) "ObjectDBX.AxDbDocument")
> | )
> | and this is where I get
> | "Automation Error. Problem in loading application"
> |
> | So, how do we solve this? Oh, and the R2002 version must also continue
to
> | work. Any answers?
> |
> | Thanks,
> | Ken Krupa
> |
> |
> | James Buzbee wrote in message
> | news:8EEB35E4C6A3BC7C0EBC4BA5267749BB@in.WebX.maYIadrTaRb...
> | > Terry W. Dotson wrote
> | > > They can coexist, AxDb16.dll doesn't need registering.
> | >
> | > Terry,
> | > So I don't need to call regsvr32.exe to "register" the dll? Ok. So
> | that's
> | > different from AxDb15.dll which needed to be registered first. I'll
> give
> | it
> | > a go - thanks Terry, John, and Mike for the replies.
> | >
> | > jb
> | >
> | >
> |
> |
>
>