I have a lisp which selects some polylines then performs some actions on them one by one, what i do is use the (ssget+sslenght+ssname) then (ssget) again to select one item with the filter set to use the entity name code (-1), but i get a nul selection set, what is wrong with the code and ae there other methods to do that (ssget+sslenght+ssname+entget) (setq b (assoc -1 (objectlist)) ,everything is fine till here (setq b1 (ssget "X" (list b))) ,returns nul ,which means i can not perform a command on the previous set supposed to have been created in the previous step (command "whatever" "p") ,and it does work if i would choose (setq b (assoc 8 (objectlist)), but then i get many objects in the selection set instead of only one any idea's. martin