The routine below is used to join two line segments. I have not been successful in getting the routine to highlight the first line I select. If I happen to miss the line I do not know it until I select the second line and then it is too late. The attached is a working version without the highlight. Can someone help shed some "highlight" on this subject? Thanks, D (I love this group!) (DEFUN C:JL () (SETQ B (ENTSEL " Pick 1st Line: ")) (IF (= B nil)(ERR)) (IF (= "LINE" (CDR (ASSOC 0 (SETQ E (ENTGET (SETQ L (CAR B))))))) (PROGN (SETQ F (CDR (SETQ J (ASSOC 10 E)))) (SETQ G (CDR (SETQ K (ASSOC 11 E)))))(ERR)) (SETQ C (ENTSEL " Pick 2nd Line: ")) (IF (= C nil)(ERR)) (IF (= "LINE" (CDR (ASSOC 0 (SETQ D (ENTGET (SETQ M (CAR C))))))) (PROGN (SETQ H (CDR (ASSOC 10 D))) (SETQ I (CDR (ASSOC 11 D))) (ENTDEL M))(ERR)) (IF (< (DISTANCE F H) (DISTANCE F I)) (PROGN (IF (< (DISTANCE G I) (DISTANCE F I)) (PROGN (SETQ E (SUBST (CONS 11 I) K E)) (ENTMOD E)) (PROGN (SETQ E (SUBST (CONS 10 I) J E)) (ENTMOD E)))) (PROGN (IF (< (DISTANCE G H) (DISTANCE F H)) (PROGN (SETQ E (SUBST (CONS 11 H) K E)) (ENTMOD E)) (PROGN (SETQ E (SUBST (CONS 10 H) J E)) (ENTMOD E)))) )(COMMAND)(COMMAND))