How to use Simulink's "Arrange" options programmatically?

42 Ansichten (letzte 30 Tage)
Simulink has many useful functions in the context menu for arranging blocks in a model, as shown in the image below. Is it possible to use these functions programmatically instead of via the context menu? Where can I find the API for these functions?
Arrange Options

Akzeptierte Antwort

Arvind Sathyanarayanan
Arvind Sathyanarayanan am 6 Dez. 2018
I am not aware of ways to align or distribute blocks programmatically but, starting Matlab 2018b you can use Simulink.BlockDiagram.arrangeSystem(system) from your MATLAB command window to automatically arrange your model.
Please see the section titled Arrange Model Layouts Automatically in this help document.

Weitere Antworten (0)

Kategorien

Mehr zu Interactive Model Editing finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by