Has anybody noticed that Randy was trying to help Robb at least begin this project himself? It is a very simple thing to give him what he has asked for. Randy didn't want to just give it to him, but probably could have. As far as using command goes, I am not totally against its use. I use it in many applications, but on a limited use and for different reasons. Now, as it is a good way to learn to crawl, let's not let it be a crutch. Randy's last comment shows where command has become a crutch. On a daily basis I have to work with crutch style programming. It sucks. The programs I have to use are riddled with command and user un-friendly (lacking error traps) code.
Dan, why not use "-layer" "m" instead of "n"? You wouldn't have to use setvar if you did and by using "m" instead of "n', if the layer exists it is merely set.