I'm trying to crate a lsp routine which will find oipen plines and then change there layer and color. This is what I have so far. My issue is how do you determine if the pline is open. (DEFUNv C: (setq cmd (getvar "cmdecho")) (setvar "cmdecho" 0) (ssget "x" '(list (cons 8 "RM$")(0 ."POLYLINE,LWPOLYLINE")) ) (while (setq (setvar "cmdecho" cmd) (princ) ) Any help would be greatly appreciated.