At Rob Howard's blog we can read that CodeSmith 3.0 has been released since Monday May 16th. I agree with him that using code generation tools can save enormous time and prevents common mistakes by writing the same code over and over again.
"Code generation tools represent one of the most interesting areas where a tremendous amount of innovation opportunity still exists for improving the software development process. By automating the process of creating framework, database access, or other common/repeated code patters developers can save time, companies can save money, and users of the end product will get better solutions. Why? Instead of spending hours repeating the same logic flows, data access layers, or implementation frameworks just write it once as a CodeSmith template. That's right -- using .NET code you can write a template for how you want your code to be generated. It's still your code with your formatting your comments and your style -- CodeSmith just helps you write it faster. In fact, you could say it's like hiring your own personal army of developers!"
You can download a free 30 day trial version.
http://weblogs.asp.net/rhoward/archive/2005/05/17/407197.aspx