I can't find where this error is coming from. I have been looking for it for about an hour. Any help is appreciated. (defun c:cl(/ob1 ob2 ob3 ob4) (command "undo" "end") (command "undo" "group") (lt-check) (while (setq ob1 (nentsel " Select dimension line to change to center ltype: ")) (if (= (vl-list-length ob1) 4) (progn (setq ob2 (entget (caar (cdddr ob1)))) (if (= (cdr (assoc 0 ob2)) "DIMENSION") (progn (setq ob3 (entget (car ob1))) (if (assoc 6 ob3) (setq ob4 (subst (cons 6 "CENTER") (assoc 6 ob3) ob3)) (setq ob4 (append ob3 (list (cons 6 "CENTER")))) ) (entmod ob4) (entupd (cdr (assoc -1 ob2))) ) (prompt " No dimension selected: ") ) ) (prompt " No dimension selected: ") ) ) (command "undo" "end") (princ) ) (defun lt-check(/tb1 ltlist1) (setq tb1 (tblnext "ltype" T)) (setq ltlist1 (list (cdr (assoc 2 tb1)))) (while (setq tb1 (tblnext "ltype")) (setq ltlist1 (append ltlist1 (list (cdr (assoc 2 tb1))))) ) (if (not (member "CENTER" ltlist1)) (command "-linetype" "l" "CENTER" "ACAD.LIN" "") ) ) Thanks in advance.