Hi I write code to add xdata for autocad objects. but if I want to select objects using - ssget filter is xdata Cad selects only polylines. Many thanks for help code: (defun add_xdata () (setq m (ssget)) (setq len (sslength m)) (setq mm (regapp (strcat "jooneke_" (rand_string)))) (setq xlist (list (list -3 (list mm '(1000 . "kallakujoon"))))) (setq i 0) (repeat len (setq rida (entget (ssname m i))) (setq rida (append rida xlist)) (entmod rida) (setq i (+ 1 i)) ) ) (defun c:kustutajooned () (setq kustutus (entget(car(entsel)) '("*"))) (setq xdata (assoc -3 kustutus)) (setq joonkustutus (ssget (list xdata))) (command "Erase" joonkustutus "") ) (defun rand_string () (setq systime (getvar "cdate")) (setq sysint (fix systime)) (setq sysvahe (- systime sysint)) (setq sysvahe (* 1000000.000 sysvahe)) (setq random (rtos (abs (- sysint sysvahe)) 2 0)) random )