Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Progress object lets you show a progress bar to the template user when CodeSmith is rendering the template. This is useful when a template takes a long time to render, as it provides a visual cue to the user that CodeSmith has not ceased responding. If you're using CodeSmith Explorer, the progress bar is displayed to the left of the Generate button:

Image RemovedImage Added

If you're using CodeSmith Explorer, the progress bar is displayed in the status bar, to the left of the line and column indicators:

Image Modified

To use the Progress object, you'll typically set the maximum value and the amount of change represented by one progress step:

...