ObjectDBX - Registering AxDb16.dll

ObjectDBX - Registering AxDb16.dll

Anonymous
Not applicable
567 Views
14 Replies
Message 1 of 15

ObjectDBX - Registering AxDb16.dll

Anonymous
Not applicable
I am trying to register AxDb16.dll using RegSvr32.exe. I keep getting the message that the module cannot be found (I have it on my computer). I've tried with and without the .dll extension and with and without the path with the same results. Any ideas?
0 Likes
568 Views
14 Replies
Replies (14)
Message 2 of 15

Anonymous
Not applicable
Starting with 2004, its no longer necessary to register it. -- ---- Ed ---- "jimmilam" wrote in message news:27865494.1088633025939.JavaMail.jive@jiveforum1... I am trying to register AxDb16.dll using RegSvr32.exe. I keep getting the message that the module cannot be found (I have it on my computer). I've tried with and without the .dll extension and with and without the path with the same results. Any ideas?
0 Likes
Message 3 of 15

Anonymous
Not applicable
Thanks, Ed.
Here's where I am now. I wrote a simple routine to open a drawing in ObjectDBX and show a message box with the drawing name. The routine runs in Excel VBA.

Dim DbxDoc As AxDbDocument, FName
Set DbxDoc = GetInterfaceObject("ObjectDBX.AxDbDocument")
FName = "C:\HYDRO\CAD_Dwgs\Bull Shoals\SWPA\E1001.dwg"
Set DbxDoc = GetObject(FName)
MsgBox "File Name is " + DbxDoc.Name

The routine gets as far as the "Set" command and I get "Run Time error '-2147221005 (800401f3)': Problem in loading application". I have references set to:
Visual Basic for Applications
Microsoft Excel 9.0 Object Library
OLE Automation
Microsoft Forms 2.0 Object Library
Microsoft Office 9.0 Object Library
AutoCAD 2005 Type Library
AutoCAD/ObjectDBX Common 16.0 Type Library

With this information, can you see where my problem may lie?
Thanks,
Jim
0 Likes
Message 4 of 15

Speed_CAD
Collaborator
Collaborator
Hi...

Private autocadApp As AcadApplication

In the event Load of UserForm:

Set autocadApp = GetObject(, "AutoCAD.Application.16.1")
Set DbxDoc = autocadApp.GetInterfaceObject("ObjectDBX.AxDbDocument.16")
Mauricio Jorquera
0 Likes
Message 5 of 15

Anonymous
Not applicable
Thanks for the suggestion. Here's my sticking point now. The routine starts, but when I get to the statement

Set DbxDoc = GetObject(FName)

it stops and I get a type mismatch error (see code in a previous reply).
0 Likes
Message 6 of 15

Anonymous
Not applicable
jimmilam wrote: > Thanks for the suggestion. Here's my sticking point now. The > routine starts, but when I get to the statement > > Set DbxDoc = GetObject(FName) You created an instance of AxDbDocument earlier in your code with the call to GetInterfaceObject yet here you are trying to create another instance without using GetInterfaceObject. That's not going to work. I think you'll find that replacing this line with the following code will yield the result you're looking for: DbxDoc.Open FName -- "It's beauty that captures your attention; personality which captures your heart."
0 Likes
Message 7 of 15

Anonymous
Not applicable
You're using GetObject. You need to use the AcadApplication's GetInterfaceObject method to create the AxDbDocument. -- http://www.caddzone.com AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005 http://www.acadxtabs.com "jimmilam" wrote in message news:23451218.1088701947135.JavaMail.jive@jiveforum1.autodesk.com... > Thanks for the suggestion. Here's my sticking point now. The routine starts, but when I get to the statement > > Set DbxDoc = GetObject(FName) > > it stops and I get a type mismatch error (see code in a previous reply).
0 Likes
Message 8 of 15

Anonymous
Not applicable
Frank,
Thanks for the suggestion. I substituted the statement

DbxDoc.Open FName
for the statement
Set DbxDoc = GetObject(FName)

When the routine got to the new statement I got a Run Time Error - Method "Open" of object 'IAxDbDocument' failed.
What am I doing wrong here?
Thanks,
Jim
0 Likes
Message 9 of 15

Anonymous
Not applicable
jimmilam wrote: > When the routine got to the new statement I got a Run Time Error - > Method "Open" of object 'IAxDbDocument' failed. What am I doing wrong > here? Is the path correct? Does the file exist? Is it open in an AutoCAD session? -- "It's beauty that captures your attention; personality which captures your heart."
0 Likes
Message 10 of 15

Anonymous
Not applicable
Tony,
Thank you for your help. I tried using the GetInterfaceObject method in place of the GetObject method and got another Run Time error - Problem in loading Application.
Any ideas.
Thanks,
Jim
0 Likes
Message 11 of 15

Anonymous
Not applicable
jimmilam wrote: > Tony, > Thank you for your help. I tried using the GetInterfaceObject method > in place of the GetObject method and got another Run Time error - > Problem in loading Application. Any ideas. > Thanks, > Jim Perhaps you should post your code again along with an explanation of your goals. -- "It's beauty that captures your attention; personality which captures your heart."
0 Likes
Message 12 of 15

Anonymous
Not applicable
ObjectDbx can't open a read-only dwg or a dwt. Any of those situations fit? -- ---- Ed ---- "Frank Oquendo" wrote in message news:40e46692$1_2@newsprd01... jimmilam wrote: > Tony, > Thank you for your help. I tried using the GetInterfaceObject method > in place of the GetObject method and got another Run Time error - > Problem in loading Application. Any ideas. > Thanks, > Jim Perhaps you should post your code again along with an explanation of your goals. -- "It's beauty that captures your attention; personality which captures your heart."
0 Likes
Message 13 of 15

Anonymous
Not applicable
"jimmilam" wrote in message news:29416705.1088709501089.JavaMail.jive@jiveforum2.autodesk.com... > > When the routine got to the new statement I got a Run Time Error - Method "Open" of object 'IAxDbDocument' failed. > What am I doing wrong here? > Thanks, > Jim I believe the .dwg extension in the filename is not optional. OTOH, you're saying in one post that you can't create the object, but if you got this far, then you must have. Now, if you don't mind, this isn't a TV game show, where everyone has to guess about exactly what the code you don't want to post is doing (unless you're offering a prize?). Post your code. -- http://www.caddzone.com AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005 http://www.acadxtabs.com AutoCAD based Security Planning Solutions: http://www.caddzone.com/securityplanning
0 Likes
Message 14 of 15

Anonymous
Not applicable
Thanks to everybody for all the help and suggestions. I've been out of the office for over a week and apologize for the delay in posting replies.
Ed, the file I was attempting to open was indeed read-only. Many of the files I need to access are also read-only. I need to address this problem before pursing Object DBX any further.
Once again, thanks to everybody for all the help.
Jim
0 Likes
Message 15 of 15

Anonymous
Not applicable
Assuming you're doing a 'read-only' operation, then you can copy a read-only file to another filename, and then open that instead. -- http://www.caddzone.com AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005 http://www.acadxtabs.com "jimmilam" wrote in message news:27771279.1089641714836.JavaMail.jive@jiveforum1.autodesk.com... > Thanks to everybody for all the help and suggestions. I've been out of the office for over a week and apologize for the delay in posting replies. > Ed, the file I was attempting to open was indeed read-only. Many of the files I need to access are also read-only. I need to address this problem before pursing Object DBX any further. > Once again, thanks to everybody for all the help. > Jim
0 Likes