Balaji, thank you very much for your help. I tried the code in AutoCAD 2012 and it works as it should. In mechanical I am still having the problem. Also, thanks to DP for your comments they were all well taken.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.