Hello everybody
Using
(setq elist (entget (car (entsel)) '("MY_APP")))
(setq exlist (assoc -3 elist))
(setq thexdata (car (cdr exlist)))
I get (depending on which xdata my point has added)
("MY_APP" (1002 . "{") (1000 . "#TE=20180602.1516") (1000 . "#HG=14.000") (1000 . "N=123") (1000 . "#TP=5") (1002 . "}"))
or
("MY_APP" (1002 . "{") (1000 . "N=124") (1002 . "}"))
or
("MY_APP" (1002 . "{") (1000 . "#HG=323.2100") (1002 . "}"))
or
("MY_APP" (1002 . "{") (1000 . "SGN=tree") (1000 . "#TE=20180602.1517") (1000 . "#HG=14.000") (1000 . "N=123")
I need to get value of each xdata in given list and add it to new variable so I can use it in further programming. As you can see the order of xdata is not always the same, so I can't use for example (setq TE (cdr (nth 1 thexdata))) and so on.
How to get those values "tree", 14.000, 123... depending on existing specific xdata?