Author Topic: DBXObject error  (Read 1399 times)

0 Members and 1 Guest are viewing this topic.

Coder

  • Swamp Rat
  • Posts: 827
DBXObject error
« on: June 21, 2018, 02:08:01 AM »
Hello guys,

Recently I have used the function DBXObject and it worked very good without any error on my PC but when I sent the same program to a friend of mine with AutoCAD Spanish version it did not work and could not create the DBXobject.

What could be the reason for that error? although he uses AutoCAD 2016 and 2017

Code: [Select]
(setq dbx (vlax-create-object (if (< (setq v (atoi (getvar "ACADVER"))) 16)
                                   "ObjectDBX.AxDbDocument" (strcat "ObjectDBX.AxDbDocument." (itoa v))))
                   )

Thank you everyone.

ronjonp

  • Needs a day job
  • Posts: 7527
Re: DBXObject error
« Reply #1 on: June 21, 2018, 09:21:53 AM »
Have him make sure that the registry key exists .. may be a bad install.

Computer\HKEY_CLASSES_ROOT\ObjectDBX.AxDbDocument.<version>\CLSID


Also .. (vl-load-com)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Coder

  • Swamp Rat
  • Posts: 827
Re: DBXObject error
« Reply #2 on: June 21, 2018, 10:26:25 AM »
Have him make sure that the registry key exists .. may be a bad install.

Computer\HKEY_CLASSES_ROOT\ObjectDBX.AxDbDocument.<version>\CLSID


Great. That is a clever and advanced solution I believe.
Thank you so much.

I will let you know if that works.

Coder

  • Swamp Rat
  • Posts: 827
Re: DBXObject error
« Reply #3 on: June 22, 2018, 04:07:50 AM »
Thank you ronjonp once again.

Your answer was very helpful and my friend did not have the DBXObject folder installed on his system and I hope after re-installing it will work again as mine.

ronjonp

  • Needs a day job
  • Posts: 7527
Re: DBXObject error
« Reply #4 on: June 22, 2018, 10:00:29 AM »
Glad to help :)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC