Author Topic: Information on ObjectDBX  (Read 2332 times)

0 Members and 1 Guest are viewing this topic.

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Information on ObjectDBX
« on: June 10, 2009, 07:15:01 PM »
I have recently delved into the world of ObjectDBX, and now have many, many questions...

I am using this code to browse Directories, kindly supplied by Tony Tanzillo:

Code: [Select]
(defun Directory-Dia  (Message / sh folder folderobject result)
  ;; By Tony Tanzillo
  ;; Modified by Tim Willey
  (vl-load-com)
  (setq sh (vla-getInterfaceObject
             (vlax-get-acad-object) "Shell.Application"))
  (setq folder (vlax-invoke-method sh 'BrowseForFolder
                 (vla-get-HWND
                   (vlax-get-Acad-Object)) Message 0))
  (vlax-release-object sh)
  (if folder
    (progn
      (setq folderobject (vlax-get-property folder 'Self)
            result (vlax-get-property FolderObject 'Path))
      (vlax-release-object folder)
      (vlax-release-object FolderObject)
      (if (/= (substr result (strlen result)) "\\")
        (setq result (strcat result "\\"))
        result))))

However, my question is:

How does one know which properties/methods to invoke on such objects? i.e. "Self" "Path" etc.

Is it a case of experimenting with vlax-dump-object or is there a help file on such objects?

Any advice is highly valued and appreciated  :-)

Thanks,

Lee

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Information on ObjectDBX
« Reply #1 on: June 10, 2009, 09:48:45 PM »
Lee,

Here is some info on scripting: http://msdn.microsoft.com/en-us/library/bb776890.aspx

I personally use VBSEDIT to browse all the methods and properties.

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Information on ObjectDBX
« Reply #2 on: June 10, 2009, 10:03:15 PM »

I personally use VBSEDIT to browse all the methods and properties.

Thanks for the link Ron, may I ask - what is VBSEDIT?

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2140
  • class keyThumper<T>:ILazy<T>
Re: Information on ObjectDBX
« Reply #3 on: June 10, 2009, 10:14:48 PM »

I personally use VBSEDIT to browse all the methods and properties.

Thanks for the link Ron, may I ask - what is VBSEDIT?

A little initiative goes a long way Lee.

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.

hermanm

  • Guest
Re: Information on ObjectDBX
« Reply #4 on: June 11, 2009, 12:05:43 AM »
Aside from the  MSDN online docs, you can d/l for free, I believe, so-called "express" versions of the Microsoft developer tools, such as VB, C#, etc.

The "pay to play" versions include an "object browser" which will show you what different *.dlls can do, so I expect the "express" versions do as well.

For ObjectDBX, you will need to browse the Active X interfaces published by other products, then translate the function signatures, just as you have to do for Active X reference to AutoCAD.

You still need to know where to look, and it appears to me that is (más o menos) word of mouth & hanging out with programmers, unless you have a lifetime or two to memorize the online Microsoft docs (for starters), plus the interfaces published by whatever (non usoft) progs with which you wish to interact.

If anyone knows of an actual reference (as in book) to all the system dlls, please, don't be shy

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Information on ObjectDBX
« Reply #5 on: June 11, 2009, 08:40:34 AM »
A little initiative goes a long way Lee.

Hmm. now I feel stupid  :-P

I thought you would have done this: http://lmgtfy.com/?q=VBSEDIT   8-)

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Information on ObjectDBX
« Reply #6 on: June 11, 2009, 08:42:01 AM »
Aside from the  MSDN online docs, you can d/l for free, I believe, so-called "express" versions of the Microsoft developer tools, such as VB, C#, etc.

The "pay to play" versions include an "object browser" which will show you what different *.dlls can do, so I expect the "express" versions do as well.

For ObjectDBX, you will need to browse the Active X interfaces published by other products, then translate the function signatures, just as you have to do for Active X reference to AutoCAD.

You still need to know where to look, and it appears to me that is (más o menos) word of mouth & hanging out with programmers, unless you have a lifetime or two to memorize the online Microsoft docs (for starters), plus the interfaces published by whatever (non usoft) progs with which you wish to interact.

Many thanks for the information Hermanm - I'll browse Google to see what I can find in the way of Express software  :-)