Thank you again sir. And I realize on the surface this looks confusing. Let me see if I can describe it more clearly.
The drawing I'm working with has about 20 or so dimensions on it. Out of these 20 or so dimensions, I will be targeting only 5 of them for text override. I know which 5 I want so I will call them Dim1, Dim2....Dim5. Each dimension will get it's own individual text override. I should add here that the text override will not be happening when I'm running the code. It will happen when another user, who is not a normal CAD person will be executing another VBA code coming out of Excel. So I hope that explains why I cannot choose all the dimensions of use any selection method.
The trouble I'm having is I need to grasp what Obj (in the example code above) is identifying about these dimensions. I'm still a newbie to the Collections, Objects and Methods for Active X in VLISP and I cannot figure out how to make something like this happen:
(vlax-put-property obj_for Dim1 "TextOverride" "56")
(vlax-put-property obj_for Dim2 "TextOverride" "62")
(vlax-put-property obj_for Dim3 "TextOverride" "22")
(vlax-put-property obj_for Dim4 "TextOverride" "33")
(vlax-put-property obj_for Dim5 "TextOverride" "24")
When I run the code submitted in my first post, with only 1 dimension in the drawing, it's easy to isolate obj and ask the command line to print it using !. That will yield the results of something like:
#<VLA-OBJECT IAcadDimAligned 0a6dd67c>
but of course I cannot enter that in lieu of obj_for_Dim1, the code just crashes. I realize this is some kind of format the vlax-put is looking for but I'm sorry I just don't know enough about it yet to put my fingers on it. So in essence I'm asking how would I go about writing out in long form (or short form) the value of obj_for_Dim1, etc... so each line would execute like it does above. I have some code which can dump all Properties and Methods for selected Objects. I run this separately to identify what I assume will be the Handle of the dimension objects and write down each one for the 5 dimensions. Then somehow I need to feed this information into those 5 individual lines of code to get only the correct dimensions set with their respective text override. Please note that I don't know for certain if Handle is the field I want or if that is even what obj is being associated with when it's assigned by the (vlax-ename->vla-object ent)
statement.
To continue with my clarification, I cannot use the ssget "_X" method because that will grab all 20 dimensions. I cannot use entsel because that defeats the whole automation effort and worse the end users of this code will not have a clue about which dimensions to pick. That's why I'm automating it.