I'm trying to rename some specific blocks, it appears to be in a cont. loop though. Can anyone help. (defun rename () (setvar "cmdecho" 0) (setq nextblock (tblnext "block" T)) (setq blocklist (list "CWSURF" "WSURF" "CHAIR")) (setq blocknew ( list "CWSURF_OLD" "WSURF_OLD" "CHAIR_OLD")) (while nextblock (setq nameofblock (cdr (assoc 2 nextblock))) (if (member nameofblock blocklist) (progn (setq newnameofblock (strcat nameofblock "_old")) (if (/= nextblock blocknew) (command ".rename" "b" nameofblock newnameofblock) (setq nextblock (tblnext "block")) ) ) ) ) ) ;