How can I override the bulk move / group move in Simulink?

20 views (last 30 days)
I've noticed sometimes in Simulink when I click on a block to move it, other aligned blocks highlight green and move with my primary block. Sometimes this behavior is helpful - sometimes it isn't. Is there a keyboard shortcut to override this behavior and ONLY move the selected block?

Accepted Answer

Soumya
Soumya on 28 Apr 2025
In Simulink, when you move, resize, or add a port to a block with three or more ports, any straight, unbranched signal lines connecting it to nearby blocks with one or two ports remain straight. Instead of bending the lines, Simulink moves the connected blocks as a group, highlighting affected blocks and lines in green. This helps maintain clean layout.
To temporarily override this grouped move behaviour and move only the selected block, Kindly, hold the Space bar while moving or resizing a block. This will allow you to move only the selected block, regardless of alignment. Once you release the Space bar, the default behaviour is restored.
To disable this functionality entirely across MATLAB sessions:
In the Simulink Editor,
  • Go to the ‘Modeling’ tab,
  • Select Environment
  • Disable the ‘Preserve Alignment option.
  • You can re-enable it by selecting Preserve Alignment again.
For more details on keyboard shortcuts and alignment in Simulink, please refer to the following documentation:
I hope this helps!
  1 Comment
Nicholas
Nicholas on 28 Apr 2025
Thank you!
Do you know if there is a way to "group" or "lock" additional blocks together? This functionality seems useful- however, it's been getting in the way by:
1) moving objects together when I just want to move a single object (addressed by the use of the spacebar as you noted)
2) moving some objects together, but not all (so I'm forced to manually select)

Sign in to comment.

More Answers (0)

Categories

Find more on Event Functions in Help Center and File Exchange

Tags

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!