(setq pt (getpoint " Origin point :")) (setq sel:obj (ssget '((0 . "Insert")))) ;;;i was add XData with many type in the block with same block name ;;;exm: "wirecut to size" "wirecut +0.005/s" "drill thru" "drill %%c4" (setq i 0) (setq obj:qty (sslength sel:obj)) (repeat obj:qty (setq obj:ent (ssname sel:obj i)) (setq in:xyz(cdr(assoc 10(entget obj:ent)))) (setq x(- (car in:xyz)(car pt))) (setq y(- (cadr in:xyz)(cadr pt))) (setq txt2(cadr(assoc -3(entget obj:ent '("WCHOLE"))))) (setq txt3(cdr(nth 1 txt2 ))) (setq i(1+ i)) ;;; my problem is how to put each txt2 value into 1 list after eazy ;;; to sorting