MATLAB: Can I automatically break the library links of the blocks when using the Model Discretizer tool in Simulink 6.0 (R14)

breakdiscretizationdiscretizediscretizerlibrarylinksmodelsimulink

The documentation on the Model Discretizer tool mentions the following:
"Discretize the BlocksTo discretize blocks that are linked to a library,
you must either discretize the blocks in the library itself or disable
the library links in the model window.
You can open the library from the Model Discretizer by selecting
Load model from the File menu. You can disable the library links
by right-clicking on the block and selecting Link options -> Disable link
from the pop-up menu."
It would be useful if I could break the library links in my model automatically with this tool.

Best Answer

The ability for the Model Discretizer tool to automatically break the links of the blocks is not available in Simulink.
To work around this issue, you can break all the library links of your model from the command line. The following code is an example:
save_system('vdp','myvdp','BreakLinks')
Note that the system must be open when this command is executed. You can refer to the following documentation for more on the use of the SAVE_SYSTEM function: