Simulink.BlockDiagram.arrangeSystem does not work inside library
4 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I'm using the command:
Simulink.BlockDiagram.arrangeSystem(gcb,FullLayout='true');
to sort and rearrange the blocks inside a masked subsystem. This worked fine until I converted this subsystem into a library block.
Now this command does nothing and the internal structure remains cluttered and unreadabel. Because this blocks heavily modifies itself, I can't establish a pleasant alignment beforehand.
Is there any way to get this working?
4 件のコメント
Fangjun Jiang
2022 年 11 月 30 日
Sorry, to be acurate, for the library block, I shall refer it as "is the LinkStatus inactive".
回答 (1 件)
Fangjun Jiang
2022 年 11 月 30 日
I've tried it. You need to disable the library link first.
set_param(gcb,'LinkStatus','inactive')
Simulink.BlockDiagram.arrangeSystem(gcb,FullLayout='true')
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simulink Environment Customization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!