The selection function is incorrect.
(defun selectbytype (objtype)
(ssget "x" (list (cons 0 objtype))))
The "x" causes selection of everything in the drawing matching the filter list. Not something that I normally need. Delete the "x" to be prompted for selection, and the selection will then be filtered.
I don't know think the key-ins will be the fastest method. For instance:
Command: MOVE
Select objects: (C:SELLINE)
3 found
Select objects: [return]
Specify base point or displacement: [etc]
To use the selection functions transparently, you will have to enter the entire function name, with parentheses, then enter a return to end the selection.
It would be easier to pre-select a group of objects, then use the upper-left pulldown in the Properties palette to select only the lines, then execute the command.