ronjonp, thanks a lot for your cobbled routine - it's too useful and there's no other places on all over the Internet I found something similar.
But I've noticed a couple of "little issues". In addition to found by danglar (posted one message higher), routine can't copy objects with any linetypes but "Continuous", even if that linetype definition attends in the drawing. It's too pity. Routine terminates with report: "Bad argument type: lentityp nil". Can somebody give me a foggiest idea why it happens?