I am trying to modify this lisp routine that was given to me but keep running into problems. After it goes through its routine, and inserts the part, I want to run command "X" and command "Y". How do I do this? (defun add () (amnew "i" prt) ) (defun ins (/ nlocal nextrn) (setvar "filedia" 0) (setq nlocal (ammodelinfo "_l")) (setq nextrn (ammodelinfo "_x")) (if (and (= nlocal 0) (= nextrn 0)) (Command "_-amcatalog" prt) ;; Attach is assumed (Command "_-amcatalog" "" prt) ) (setvar "filedia" 1) ) (DEFUN C:PP-200689-001() (setq prt "PP-200689-001") (if(tblsearch "block" prt) (add) (ins) )) (COMMAND "X") (COMMAND "Y") TIA Collin