The CodeSmith Generator objects

Behind the scenes, the CodeSmith Generator engine works by manipulating a rich object model, and your templates can use that object model too. Every template is a class, so these objects are available from code blocks and script blocks through this (Me in Visual Basic).

Object What you use it for
The CodeTemplate object The template itself: override its methods and events, and write to its output through the Response property.
The Progress object Show a progress bar while a long-running template generates.
The CodeTemplateInfo object Read information about the template, such as its file name, path and languages.