VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ObjectDBX Dilema

8 REPLIES 8
Reply
Message 1 of 9
Anonymous
231 Views, 8 Replies

ObjectDBX Dilema

After much reading on ObjectDBX, I followed "The Wonder Llama's" ObjectDBX Example (http://www.cadvault.com/forums/showthread.php?t=2881) and created my app, which work fine on my machine, but when I try and use the application from another machine it fatals autocad.

I tracked the problem to AXDB15.TLB being referenced, is this correct ?
Because if I reference axdb15.dll I don't get the fatal and all works well.....??

The reason I ask is
Quote:
Just to be clear -
you DON'T reference axdb15.dll
you DO reference AXDB15.TLB

taken from the link above.

Can someone clarify this or give me hint as to why I have this issue ?
8 REPLIES 8
Message 2 of 9
Anonymous
in reply to: Anonymous

Spageddie wrote: > Can someone clarify this or give me hint as to why I have this issue ? Is AXDB15.DLL registered (using REGSVR32.exe) on the other machine? Terry -- The Ultimate Productivity Add-On for AutoCAD ToolPac 8.0 from http://www.dotsoft.com
Message 3 of 9
Anonymous
in reply to: Anonymous

VBA doesn't reference DLLS it references type libraries. Type libraries can exist in either a DLL/OCX or a .TLB file. So, the problem is that the AxDb15.dll is not registered on the problem system. -- http://www.caddzone.com AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005 http://www.acadxtabs.com "Spageddie" wrote in message news:16839440.1095887896529.JavaMail.jive@jiveforum1.autodesk.com... > After much reading on ObjectDBX, I followed "The Wonder Llama's" ObjectDBX Example (http://www.cadvault.com/forums/showthread.php?t=2881) and created my app, which work fine on my machine, but when I try and use the application from another machine it fatals autocad. > > I tracked the problem to AXDB15.TLB being referenced, is this correct ? > Because if I reference axdb15.dll I don't get the fatal and all works well.....?? > > The reason I ask is > Quote: > Just to be clear - > you DON'T reference axdb15.dll > you DO reference AXDB15.TLB > > taken from the link above. > > Can someone clarify this or give me hint as to why I have this issue ?
Message 4 of 9
Anonymous
in reply to: Anonymous

I don't believe so...but how would one go about registering the DLL on approx 50 machines?
Is there a way to do it through the coding ?
Message 5 of 9
Anonymous
in reply to: Anonymous

What version of AutoCAD and do you have AutoCAD running when you try to use DBX? You should not need to register it. -- Mike ___________________________ Mike Tuersley CADalyst's CAD Clinic Rand IMAGINiT Technologies ___________________________ the trick is to realize that there is no spoon...
Message 6 of 9
Anonymous
in reply to: Anonymous

Spageddie wrote: > I don't believe so...but how would one go about registering the DLL > on approx 50 machines? Is there a way to do it through the coding ? On Local Error Resume Next If Int(Val(AutoCAD.Version)) = 15 Then Set Temp = ThisDrawing.Application.GetInterfaceObject("ObjectDBX.AxDbDocument") If Err Then Reg = Application.Path + "\" + "AXDB15.DLL" Ret = Shell("REGSVR32 /s " + Chr$(34) + Reg + Chr$(34), 0) Err.Clear End If End If On Error GoTo 0 Terry
Message 7 of 9
Anonymous
in reply to: Anonymous

Terry,
Thanks for replying with this bit of code...
Could you please answer the following....

variable declaration for the following..
Dim Reg as ????
Dim Ret as ?????

Regards,
Eddie
Message was edited by: Spageddie
Message 8 of 9
Anonymous
in reply to: Anonymous

Spageddie wrote: > variable declaration for the following.. > Dim Reg as ???? > Dim Ret as ????? Well lets look at them. > Reg = Application.Path + "\" + "AXDB15.DLL" That smells like AutoCADs path to the dll eh? > Ret = Shell("REGSVR32 /s " + Chr$(34) + Reg + Chr$(34), 0) A dummy return variable. Back to work. Terry
Message 9 of 9
Anonymous
in reply to: Anonymous

Problem fixed...woohoo..
A big thanks to all of you whom replied....

Regards,
Eddie

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

Post to forums  

Autodesk Design & Make Report

”Boost