I was trying to write a lisp to align text but something wrong in this lisp. Also I have no idea how to handle (if (= "text","mtext" (cdr b)). (defun c:talign () (setq gp (getpoint " Specify a point:")) (setq gx (car gp)) (prompt " Select text to align") (setq gt (setq gt (ssget '((0 . "MTEXT,TEXT" ))))) (setq n (sslength gt)) (setq index 0) (repeat n (setq b1 (entget (ssname gt index))) (setq index (index+ 1)) (setq b (assoc 0 b1)) (if (= "text" (cdr b)) (progn (setq c (cadr (assoc 10 b1))) (setq b2 (subst gx c)) (entmod b2) ) ) ) (princ) ) (princ) Thanks John