Main Content

Rebuild a Model

If you update generated source code or makefiles manually to add customizations, you can rebuild the files with the rtwrebuild command. This command recompiles the modified files by invoking the generated makefile. Alternatively, you can rebuild from the Model Explorer:

  1. Open the Model Explorer.

  2. In the Model Hierarchy pane, expand the node for the model.

  3. Click the Code for model node.

  4. In the Code pane, next to Code Recompile Command, click rebuild generated code.

Related Topics