Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ObjectDBX - R15 & R16

11 REPLIES 11
Reply
Message 1 of 12
Anonymous
303 Views, 11 Replies

ObjectDBX - R15 & R16

Can the AxDb15.dll and AxDb16.dll be "loaded(?)" on the same machine? I
don't have 2004 so I can't play around with it. There are some guy's over
at the ADT NG that are trying to use a utility I wrote for R15 that uses
this activex object but they're getting "Error: Failed to register ObjectDBX
ActiveX services". I'm not going to have them going into the registry and
start deleting things!

I've re-written the utility to use the new AxDb16.dll but I think it must be
attempting to use the same class id. The registry location is
"HKEY_CLASSES_ROOT\\ObjectDBX.AxDbDocument\\CLSID". If anyone has any
knowledge please share - thanks!!!

It would (edited) if they can't coexist.

jb
11 REPLIES 11
Message 2 of 12
Anonymous
in reply to: Anonymous

James,
Acad 2002 (using AxDb15.dll) and Acad 2004 (using AxDb16.dll) can be
installed side by side, so I would expect the two dlls to cooperate, but
can't say that I've tried it.

--
Mike Weaver
Message 3 of 12
Anonymous
in reply to: Anonymous

James:

Check out David Stein's "Visual Lisp Developers Bible" by searching the net
using that quoted phrase. He's got some neat ObjectDBX sample tools that could
be used to force alternating between DLL versions.

--
John Uhden, Cadlantic/formerly CADvantage
http://www.cadlantic.com
Sea Girt, NJ
Message 4 of 12
Anonymous
in reply to: Anonymous

James Buzbee wrote:

> Can the AxDb15.dll and AxDb16.dll be "loaded(?)"

They can coexist, AxDb16.dll doesn't need registering.

Terry
Message 5 of 12
Anonymous
in reply to: Anonymous

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
Message 6 of 12
Anonymous
in reply to: Anonymous

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
>
>
Message 7 of 12
Anonymous
in reply to: Anonymous

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
| >
| >
|
|
Message 8 of 12
Anonymous
in reply to: Anonymous

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
> | >
> | >
> |
> |
>
>
Message 9 of 12
Anonymous
in reply to: Anonymous

Yes, thanks R. Robert.

I still don't know your first name; R. or Robert? it's ok I'm easily
confused!

jb
Message 10 of 12
Anonymous
in reply to: Anonymous

Some call me... Bob. 😉

--
R. Robert Bell, MCSE
www.AcadX.com


"James Buzbee" wrote in message
news:9A38A333316D8779FD9A23990E8BD163@in.WebX.maYIadrTaRb...
| Yes, thanks R. Robert.
|
| I still don't know your first name; R. or Robert? it's ok I'm easily
| confused!
|
| jb
|
|
Message 11 of 12
Anonymous
in reply to: Anonymous

> Some call me... Bob. 😉

Do you call your mother "Ma Bell"? 😉


--

Darren J. Young
dyoung@mcwi.com

Autodesk Developer Network

Minnesota CADWorks, Inc.
PO Box 1172
Monticello, Minnesota 55362-1172
(763) 295-4433
http://www.mcwi.com
ftp://ftp.mcwi.com
Message 12 of 12
Anonymous
in reply to: Anonymous

Yup, especially since she lives in the Ozarks!

--
R. Robert Bell, MCSE
www.AcadX.com


"Darren J. Young" wrote in message
news:MPG.19401cc5bc4c85939898c3@discussion.autodesk.com...
| > Some call me... Bob. 😉
|
| Do you call your mother "Ma Bell"? 😉
|
|
| --
|
| Darren J. Young
| dyoung@mcwi.com
|
| Autodesk Developer Network
|
| Minnesota CADWorks, Inc.
| PO Box 1172
| Monticello, Minnesota 55362-1172
| (763) 295-4433
| http://www.mcwi.com
| ftp://ftp.mcwi.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost