Zum Inhalt springen
Kitbay

stateflow-apply-layout

NOASSERTIONAktualisiert am 19. Nov. 20261.366GitHub-Sterne

A MathWorks skill from the Simulink Agentic Toolkit that tidies Stateflow diagrams.

Was der Skill vermittelt

A MathWorks skill from the Simulink Agentic Toolkit that tidies Stateflow diagrams. It is meant for charts left with overlapping states, transitions or junctions after edits through the Stateflow API, or when a user asks to clean up a chart, subchart, box or function. The agent finds the right subviewers, skips table-type charts and locked ones, and calls MathWorks' autolayout function either for a full rearrangement or incrementally, placing only new objects and keeping deliberate positions. Layout style and direction can be set. It then compares positions to make sure the call ran and tells the user the model has unsaved changes. Simulink block layout is left to the toolkit's model editing tool.

Funktionen

  • Rearrange a Stateflow chart automatically
  • Place only newly added states and transitions
  • Choose layout style and direction