how to turn off auto port move of subsystems when dragging and making connections to simulink diagram

7 views (last 30 days)
When making connections or moving connections in a simulink diagram, subsytem ports move automatically. I believe this is a new feature.
I have been looking for a way to turn this feature off.
If I drag the out the line to a wider area to make connection the subsystem ports do not move, which typically means I have to zoom out. This Is a extra step.
  4 Comments
Jorge
Jorge on 4 May 2025
OMG yes. There needs to be a way to turn this off. For many of us it adds no value. And for me all it has done is waste my time. The suggestion to mask subsystems is valid. However my primary deliverable is my controls design and analysis, not my Simulink Simulation.
I get wanting to be helpful and user friendly. But I've been using Simuling for more than two decades. And many of the newer smart and "helpful" features are getting the way. There should absolutely be a way to turn them off.
Jason
Jason on 17 Jun 2025
wow this is a terrible feature! Why cannot it not be simply turned off? Everytime I try to link into a subsystem it starts sliding my port all around the outside of the subsystem. Sometime I am smarter that Matlab. Awful feature.

Sign in to comment.

Answers (1)

Ishaan
Ishaan on 18 Feb 2025
Hey Andrew,
I understand that you're experiencing automatic repositioning of subsystem ports in Simulink when making or moving connections.
You can work around this issue by masking your subsystems. This approach will prevent the ports from being repositioned automatically. This way you can create a layer of abstraction around the block, allowing you to maintain control over the appearance and layout of your model. Also, note that you will need to add at-least one parameter callback to the mask for this to work, masks without parameter callbacks still allow port repositioning.
While the ports are fixed, you can still edit the contents of the now masked subsystem by clicking on the “Look inside mask” button (appears as a downward arrow) on the bottom left of the masked subsystem block. The mask does not restrict functionality but rather enhances the control over the subsystem's appearance.
This approach should streamline your workflow by eliminating the need to zoom out and manually adjust connections.

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!