Having Managed to Create Additional Object Data Fields (using ADEATTACHDATA>Define>NewTable), and populating those resulting attributes in the Properties Table, I am now struggling to retieve those values back out into a lisp variable. In my Properties list, I can now see a new set of Attributes and data under the heading 'OD:GIS_OBJECT_DATA', which is fully populated with loads of good info (see jpg attachment), but try as I might I can't work out how to get my hands on it (programatically). The only difference I can see between an element that has the additional data is that the 'hasextensiondictionary' property is set at '-1' for the populate entities, and '0' for the non-populated entities. I've tried things like (vlax-get-property (vla-item (vla-getextensiondictionary (vlax-ename->vla-object (car (entsel)))) 0)), but, being a vlisp novice, I just can't seem to grasp how to drive down into this additional object data and get the values out. If anyone can assist that'd be great
(Using Acad Map 3D 2011)
Solved! Go to Solution.
Great!! - That was exactly the pointer I needed. Had a solution 5 minutes after reading your post. (after struggling for several hours). Thanks VM.
(defun od_value (attr_name / tname mo)
(setq tname (nth 0 (ade_odgettables (setq mo (car (entsel))))))
(ade_odgetfield mo tname attr_name 0)