Simulink.BlockDiagram.refreshBlocks
R2026bUpdate variants, linked blocks, and model references to reflect changes
Since R2023a
Description
Simulink.BlockDiagram.refreshBlocks(
refreshes all variants, linked blocks, and Model blocks in the model
specified by mdl)mdl.
To refresh blocks in referenced models, call this function for each referenced model.
When you modify a referenced model and the parent model is loaded but not open, this function lets you refresh the Model blocks in a model without compiling, simulating, or generating code for the model hierarchy.
Examples
Input Arguments
Tips
To refresh a specified Model block, use the Simulink.ModelReference.refresh function.
Alternative Functionality
In the Simulink® Toolstrip, on the Modeling tab, click the Update Model button arrow. Then, select Refresh Blocks.
Version History
Introduced in R2023a