Simulink.BlockDiagram.arrangeSystem does not work inside library
Ältere Kommentare anzeigen
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 Kommentare
Fangjun Jiang
am 30 Nov. 2022
Is the library block un-locked?
Manuel K
am 30 Nov. 2022
Fangjun Jiang
am 30 Nov. 2022
Sorry, to be acurate, for the library block, I shall refer it as "is the LinkStatus inactive".
Manuel K
am 30 Nov. 2022
Antworten (1)
Fangjun Jiang
am 30 Nov. 2022
0 Stimmen
I've tried it. You need to disable the library link first.
set_param(gcb,'LinkStatus','inactive')
Simulink.BlockDiagram.arrangeSystem(gcb,FullLayout='true')
2 Kommentare
Manuel K
am 1 Dez. 2022
Kategorien
Mehr zu Create Large-Scale Model Components finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!