-
Notifications
You must be signed in to change notification settings - Fork 14
Guide 402: Regenerating SmartTypes
In some cases you will need to regenerate SmartTypes. These cases may include when the SmartData repo is updated with a new feature, or when you add a custom SmartType template. The SmartType generator tool can automatically regenerate generated code.
With the tool open, click Regenerate... to switch to regeneration mode. The tool will automatically search your project for SmartTypes. This may take a few seconds.
This process uses the
// SMARTTYPE
and// SMARTTEMPLATE
headers found in generated script files.
The tool will group found files by path. You can deselect each file, or an entire folder, from being regenerated if necessary. In general there is no danger in regenerating existing files.
Regeneration is only dangerous if you have manually modified a generated file. This is strongly discouraged and SmartData has functionality for most cases in which you might want to do this.
If there are new template files present, the tool will generate new files for SmartTypes which lack the files which would result from that template. The tool will generate these files in the same folder as the first file it found of that SmartType. In these cases, the checkbox will be blue and the tool will note that it is a new file under the Misc column.
Generated files can be moved freely within the project - the tool will find them as long as they have the
// SMARTTYPE
and// SMARTTEMPLATE
headers.