Thanks for your reply,I have tested your C2P.lsp. The code is no error but not what I want. Firstly, I need it can selected in different pline segments. Secondly, it preferably with window or crossing selection mode (e.g. (command "._select" (ssget "C" xx yy) pause) ). Of course, also need sigle selection mode in processing.