Author Topic: ObjectDBX requirement.  (Read 1993 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
ObjectDBX requirement.
« on: August 18, 2016, 09:37:18 PM »

Hi all,..

I'm experimenting new problem with ObjectDBX since I use it..
in fact,.ObjectDBX always return nil as a value.
I suspect that something change on my computer ,...seem to be a windows update..:\

So I'm trying to find the requirement files to use ObjectDBX...dll,arx,lib etc..
any help will be appreciated.

Thank you.

My code:
Code: [Select]
(if (< (atoi (substr (getvar "ACADVER") 1 2)) 16)
(setq dbx (vlax-create-object "ObjectDBX.AxDbDocument"))
(setq dbx (vlax-create-object (strcat "ObjectDBX.AxDbDocument." (substr (getvar "ACADVER") 1 2))))
)

dbx = nil




Keep smile...

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2159
  • class keyThumper<T>:ILazy<T>
Re: ObjectDBX requirement.
« Reply #1 on: August 19, 2016, 12:57:18 AM »

Not sure if this will help

Code - Auto/Visual Lisp: [Select]
  1.  
  2.  ;;if not in documents collection, use ObjectDBX
  3.   (if (null sourcedocumentdbx)
  4.     (cond ((> (atoi (getvar "AcadVer")) 15)
  5.            (setq
  6.              sourcedocumentdbx (if (< (setq vers (substr (getvar "acadver") 1 2))
  7.                                       "16"
  8.                                    )
  9.                                  (vla-getinterfaceobject (vlax-get-acad-object)
  10.                                                          "ObjectDBX.AxDbDocument"
  11.                                  )
  12.                                  (vla-getinterfaceobject
  13.                                    (vlax-get-acad-object)
  14.                                    (strcat "ObjectDBX.AxDbDocument." vers)
  15.                                  )
  16.                                )
  17.            )
  18.            (vla-open sourcedocumentdbx path)
  19.           )
  20.           (t (alert "too bad, so sad"))
  21.     )
  22.   )
  23.  
  24.  
  25.  


Regards,
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: ObjectDBX requirement.
« Reply #2 on: August 19, 2016, 06:24:01 PM »
I have this error..

Code: [Select]
_$
; error: Automation Error. Problem in loading application
_$


comes from...

Code: [Select]
(vla-getinterfaceobject
                                   (vlax-get-acad-object)
                                   (strcat "ObjectDBX.AxDbDocument." vers)
                                 )
Keep smile...

Andrea

  • Water Moccasin
  • Posts: 2372
Re: ObjectDBX requirement.
« Reply #3 on: August 19, 2016, 07:08:57 PM »
Ok,..it seem that all required library was gone...for unknow reason..

file missing for all autoCAD version installed..requiring library.:

acdbXX.lib
AcDbMPolygonXX.lib
acgeXX.lib
acgiapi.lib
achapiXX.lib
acISMobjXX.lib
axdb.lib
rxapi.lib
rxheap.lib

So,..I had to reinstall AutoCAD from the remove panel to fix it.
Keep smile...

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: ObjectDBX requirement.
« Reply #4 on: August 22, 2016, 10:25:07 AM »
I've had that problem with BETA installs/uninstalls.
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}