How can I set the diagram view offset

1 visualización (últimos 30 días)
Robert
Robert el 21 de Mzo. de 2018
We have a script that normalises the appearance of Simulink models in accordance to our development rules. One part of it is to move all objects in a diagram in a way that the leftmost objects is placed with a decent margin to horizontal 0-position and the topmost respectively to vertical 0-Position. But in recent versions Simulink seems to save the view offset "as is" when saving. This often results in a blank window when re-opening, where the elements have been moved to their intended position and the view offset at saving time was somewhere way off the origin.
So is there any way to move the view offset to the origin by script? Or at least make Simulink not save the view offset to file, so it will reload without view offset? I couldn't find any parameter of Subsystem-objects to influence this, does anyone else know a solution?

Respuestas (0)

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by