Turn off Content Preview Enabled when creating a subsystem in simulink
Show older comments
0
I have a script that generates a subsystem and I want to turn off the Content Preview. My script has the following line:
add_block('built-in/Subsystem',[sys '/subsystemA'],'Position',[1150 100 1400 980],'AttributesFormatString','Version: %<Tag>','Tag','5.0.0','ContentPreviewEnabled','off');
This is not working in R2019B. Any suggestions?
Accepted Answer
More Answers (1)
Fangjun Jiang
on 5 May 2022
0 votes
When you add the Subsystem block, it is empty (no contents). I guess maybe due to that, 'ContentPreviewEnabled' can't be set as 'off'.
If adding a subsystem block with contents (e.g source block being a subsystem block in another model), 'ContentPreviewEnabled' can be set as 'off' in one command.
Categories
Find more on Subsystems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!