No! You don't need to modify the code thus, the command asks you to input the filename - this so it can run in any instance. I'll try and make a video screen capture for you so you can see what I mean ... might take a while though, since I'm a bit busy at present .
thank you for response! are you friend of od1? he pointed out that you may be a person wih whom he worked. as i had communication with him by normal mail.
1.
i tried from scratch, i saved code from your post and created .lsp file. yet still not working,,, after i have noticed that after defun 'c:' were missing in few places. i don't know if it was intentional or not, but i have given 'c:' after each DEFUN line.
after giving 'c:' lisp was recognized in autocad, however, received message