I can't be of much help, as I don't have LDD, and the entities come in as proxy graphic since I don't, but I would search the enames to see if they have the info you want. I wrote a little program that will let you see what is what with enames. No error checking, and will only work if you pick on an ename from the dialog, but it might help shed some light on the problem for you.
Dialog definition attached. Just place in a search path, and type ' ChaseEntData ' to run the command. Select the polyline, and then go from there.
Code:
(defun c:ChaseEntData (/ Sel)
(if (setq Sel (entsel))
(ChaseEntData (car Sel))
)
(princ)
)
;-----------------------------------------
(defun ChaseEntData (Ent / DiaRtn DataList)
(while
(and
Ent
(setq DiaRtn
(SingleSelectWide
(mapcar
'(lambda (x / tempType)
(if
(and
(equal (type (cdr x)) 'ENAME)
(setq tempType (cdr (assoc 0 (entget (cdr x)))))
)
(strcat
(vl-princ-to-string (car x))
"\t\t"
(vl-princ-to-string (cdr x))
" [ "
tempType
" ]"
)
(strcat
(vl-princ-to-string (car x))
"\t\t"
(vl-princ-to-string (cdr x))
)
)
)
(setq DataList (entget Ent '("*")))
)
"Select entity name to chase."
nil
)
)
)
(if (not (equal (type (setq Ent (cdr (nth (car DiaRtn) DataList)))) 'ENAME))
(setq Ent nil)
)
)
)
Code:
(defun SingleSelectWide (Listof Message Toggle / DiaLoad tmpStr tmpTog tmpList)
(setq DiaLoad (load_dialog "MyDialogs.dcl"))
(if (new_dialog "SingleSelectWide" DiaLOad)
(progn
(start_list "listbox" 3)
(mapcar 'add_list Listof)
(end_list)
(if Message
(set_tile "text1" Message)
)
(if (not Toggle)
(mode_tile "toggle1" 1)
)
(action_tile "listbox"
"(if (= $reason 4)
(progn
(setq tmpStr (get_tile \"listbox\"))
(if Toggle
(setq tmpTog (get_tile \"toggle1\"))
)
(done_dialog 1)
)
)"
)
(action_tile "accept"
"(progn
(setq tmpStr (get_tile \"listbox\"))
(if Toggle
(setq tmpTog (get_tile \"toggle1\"))
)
(done_dialog 1)
)"
)
(action_tile "cancel" "(done_dialog 0)")
(if (= (start_dialog) 1)
(progn
(setq tmpList (read (strcat "(" tmpStr ")")))
(if (= tmpTog "1")
(cons T tmpList)
tmpList
)
)
)
)
)
)