Simulink: Keyboard shortcut for match block size
Show older comments
Prior to 21b when Match Size / Width / Heigh were in the right click context menu (which why are they removed in the first place????) you could right click when selected on multiple blocks, then right click and A(rrange) -> S(ize) which was fast and easy way to match things up without having to go searching for things. Now it is in the ribbon, where I have to navigate to (which I usually avoid the ribbon at all costs) go to the correct tab, then click the button. This post discusses the topic, but with no useful workaround, other than use the ribbon. This is just way too many extra steps for something that just existed right in the canvas with a few click and small mouse movement, or no movement at all using the keyboard.
So how do I either setup a keyboard shortcut to do this (for size, width, and height) or add my own context menu to bring that command back? Is there a command similar to Simulink.BlockDiagram.arrangeSystem? Or do I have to do a whole
pos = get(gcbh,'Position')
% code to turn position to height and width
blocks = find_system(get(gcbh,'parent'),'FindAll','on','Selected','on')
% some voodoo to update all the sizes and not accidentally move them ...
% and make own context menu function to call the above. which used to be built in and is gone now because?
Accepted Answer
More Answers (0)
Categories
Find more on Simulink Environment Customization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!