Angelo2449
Guest
Hello everyone,
I would like to be able to establish the number of extended data associated with an element.
with this code I extract the extended data:
I would like to be able to establish the number of extended data associated with an element.
with this code I extract the extended data:
Code:
(setq title "select the point name")
(princ "\n")
(Sectq ed3)
(princ "\n")
(Sectq and 1 ed)
(Sectq edgen ed3)
(setq list (entget (car ed1) '("group")))
(setq xlist (assoc -3 list)
(setq txtdata (car))
(setq nomex (cdr)
(setq nomegenx nomex); global name
(setq type of point (nth 2 txtdata)))
(setq share (cdr (nth 3 txtdata))))
(setq ecef (nth 4 txtdata)))
(setq gaussboaga (cdr 5 txtdata)))
(setq controllerstz (nth 6 txtdata)))
(setq controllerpt (nth 7 txtdata)))
(setq coordsgeogr (nth 8 txtdata)))
(cdr 9 txtdata)
(setq notepoint (cdr 10 txtdata)))[CODE] how I can establish beforehand the number of extended data (in this case 10) so as not to encapsulate
in nil data?
Thank you.