WEBVTT

00:00:08.559 --> 00:00:10.659
<font face="HK Grotesk">Hi and welcome to the short introduction</font>

00:00:10.730 --> 00:00:12.490
<font face="HK Grotesk">To the most important layout actions</font>

00:00:12.539 --> 00:00:14.469
<font face="HK Grotesk">Of MES Model and Refactor.</font>

00:00:14.860 --> 00:00:17.320
<font face="HK Grotesk">With these actions you can
quickly and easily</font>

00:00:17.340 --> 00:00:19.360
<font face="HK Grotesk">Improve the layout of your subsystems.</font>

00:00:20.960 --> 00:00:23.510
<font face="HK Grotesk">Let's start with one of the most
frequently used actions</font>

00:00:23.600 --> 00:00:25.640
<font face="HK Grotesk">Called Straighten Lines From Block.</font>

00:00:26.480 --> 00:00:28.520
<font face="HK Grotesk">Imagine you're working on this subsystem</font>

00:00:30.880 --> 00:00:34.340
<font face="HK Grotesk">And you have just added new blocks
and signal lines in this area</font>

00:00:37.280 --> 00:00:40.570
<font face="HK Grotesk">Now you want to easily
and quickly improve the layout.</font>

00:00:42.000 --> 00:00:44.780
<font face="HK Grotesk">With MES MoRe you can select
the block that dominates</font>

00:00:44.800 --> 00:00:46.560
<font face="HK Grotesk">The layout of your subsystem.</font>

00:00:47.200 --> 00:00:50.400
<font face="HK Grotesk">This is usually the largest block
in the current subsystem.</font>

00:00:52.640 --> 00:00:54.960
<font face="HK Grotesk">Then start the action
Straighten Lines From Block</font>

00:00:54.999 --> 00:00:56.529
<font face="HK Grotesk">From the MoRe menu</font>

00:00:59.280 --> 00:01:00.850
<font face="HK Grotesk">Which opens the dialog.</font>

00:01:01.920 --> 00:01:05.200
<font face="HK Grotesk">When you click apply the action
moves all connected blocks</font>

00:01:05.220 --> 00:01:07.320
<font face="HK Grotesk">So that the signal lines are straight.</font>

00:01:12.070 --> 00:01:13.560
<font face="HK Grotesk">You can also do this recursively</font>

00:01:13.899 --> 00:01:16.389
<font face="HK Grotesk"> So that the more distant blocks
are moved as well.</font>

00:01:25.600 --> 00:01:28.120
<font face="HK Grotesk">The recursive option works especially well</font>

00:01:28.180 --> 00:01:30.420
<font face="HK Grotesk">When a large block dominates the layout</font>

00:01:30.430 --> 00:01:31.750
<font face="HK Grotesk">Of the current subsystem.</font>

00:01:37.600 --> 00:01:39.150
<font face="HK Grotesk">In the second example here</font>

00:01:39.200 --> 00:01:41.620
<font face="HK Grotesk"> The dominant block is the
large bus creator block</font>

00:01:41.640 --> 00:01:43.420
<font face="HK Grotesk">That I select for the action.</font>

00:01:46.000 --> 00:01:49.440
<font face="HK Grotesk">In this example, the entire layout
can be improved</font>

00:01:49.450 --> 00:01:50.700
<font face="HK Grotesk">With a single click.</font>

00:01:55.840 --> 00:01:57.980
<font face="HK Grotesk">If you want, you can also adjust the size</font>

00:01:58.040 --> 00:02:01.040
<font face="HK Grotesk">Of the selected block by
setting a new port spacing.</font>

00:02:11.960 --> 00:02:15.760
<font face="HK Grotesk">This can help you to avoid
overlapping of the shifted blocks.</font>

00:02:17.680 --> 00:02:20.450
<font face="HK Grotesk">The next two layout actions I want
to show you are called</font>

00:02:20.500 --> 00:02:24.179
<font face="HK Grotesk">Adjust Blocks to Destinations and
Adjust Blocks to Sources.</font>

00:02:24.879 --> 00:02:26.579
<font face="HK Grotesk">The use case is similar to before</font>

00:02:26.640 --> 00:02:27.860
<font face="HK Grotesk">But a little bit different.</font>

00:02:31.440 --> 00:02:33.480
<font face="HK Grotesk">Again, the idea is to improve the layout</font>

00:02:33.480 --> 00:02:35.340
<font face="HK Grotesk">So that the signal lines are straight.</font>

00:02:36.480 --> 00:02:39.980
<font face="HK Grotesk">However, instead of shifting the blocks
next to a selected block</font>

00:02:40.260 --> 00:02:42.840
<font face="HK Grotesk">You can now shift the
selected blocks themselves.</font>

00:02:44.400 --> 00:02:47.500
<font face="HK Grotesk">So imagine I want to shift
only the selected blocks here</font>

00:02:48.000 --> 00:02:50.080
<font face="HK Grotesk">So that the signal lines are straight.</font>

00:02:51.100 --> 00:02:55.200
<font face="HK Grotesk">For this I can use the
Adjust Blocks To Destinations action</font>

00:02:56.480 --> 00:02:57.480
<font face="HK Grotesk">From the MoRe menu.</font>

00:03:01.500 --> 00:03:03.460
<font face="HK Grotesk">For the opposite direction,
you can simply use</font>

00:03:03.490 --> 00:03:05.760
<font face="HK Grotesk">The Adjust Blocks To Sources action.</font>

00:03:14.879 --> 00:03:18.460
<font face="HK Grotesk">However, the action not only adjusts
the position of the blocks</font>

00:03:18.600 --> 00:03:20.240
<font face="HK Grotesk">But also the size of the blocks</font>

00:03:20.300 --> 00:03:22.600
<font face="HK Grotesk">To align with the connected ports.</font>

00:03:23.850 --> 00:03:27.360
<font face="HK Grotesk">A classic use case is a bus selector
placed before a subsystem.</font>

00:03:36.720 --> 00:03:40.400
<font face="HK Grotesk">Both actions can also be applied to
several blocks in a row.</font>

00:04:04.159 --> 00:04:05.760
<font face="HK Grotesk">The next action can be used</font>

00:04:05.777 --> 00:04:08.240
<font face="HK Grotesk">To arrange the port blocks
in your subsystem.</font>

00:04:15.059 --> 00:04:16.680
<font face="HK Grotesk">Unlike the previous actions</font>

00:04:16.759 --> 00:04:19.280
<font face="HK Grotesk">The port blocks are positioned
not only vertically</font>

00:04:20.420 --> 00:04:22.040
<font face="HK Grotesk">But also horizontally.</font>

00:04:25.280 --> 00:04:28.480
<font face="HK Grotesk">If you apply the action only to
the selected port blocks</font>

00:04:28.530 --> 00:04:31.880
<font face="HK Grotesk">They will be aligned with other
unselected port blocks.</font>

00:04:38.230 --> 00:04:40.310
<font face="HK Grotesk">If you apply the action to all port blocks</font>

00:04:40.320 --> 00:04:41.940
<font face="HK Grotesk">Without selecting anything</font>

00:04:42.420 --> 00:04:45.171
<font face="HK Grotesk">The port blocks are positioned
at the left and right edge</font>

00:04:45.200 --> 00:04:46.240
<font face="HK Grotesk">Of the subsystem</font>

00:04:52.960 --> 00:04:55.600
<font face="HK Grotesk">The action also adjusts
the necessary spacing</font>

00:04:55.760 --> 00:04:58.060
<font face="HK Grotesk">For block names and signal labels.</font>

00:05:13.759 --> 00:05:15.819
<font face="HK Grotesk">The next action from the Layout category</font>

00:05:15.840 --> 00:05:18.320
<font face="HK Grotesk">Is called Match Block Size To Icon Text</font>

00:05:23.199 --> 00:05:25.140
<font face="HK Grotesk">In Simulink, a lot of blocks
like Constant blocks</font>

00:05:25.140 --> 00:05:28.520
<font face="HK Grotesk">Constant blocks display
names or numbers on their icon</font>

00:05:29.919 --> 00:05:32.739
<font face="HK Grotesk">With MoRe you can automatically
resize these blocks</font>

00:05:32.840 --> 00:05:34.960
<font face="HK Grotesk">To match the text displayed on their icon.</font>

00:05:36.180 --> 00:05:38.420
<font face="HK Grotesk">Blocks that are too small are made larger</font>

00:05:45.440 --> 00:05:47.920
<font face="HK Grotesk">And blocks that are too large
are made smaller</font>

00:05:52.479 --> 00:05:54.240
<font face="HK Grotesk">Resulting in a uniform layout.</font>

00:05:55.759 --> 00:05:58.699
<font face="HK Grotesk">You can apply the action
only to the selected blocks</font>

00:05:59.199 --> 00:06:01.380
<font face="HK Grotesk">Or by selecting nothing at all</font>

00:06:01.680 --> 00:06:04.920
<font face="HK Grotesk">To all blocks with icon text
in the current subsystem</font>

00:06:14.800 --> 00:06:16.380
<font face="HK Grotesk">You can configure the padding</font>

00:06:16.400 --> 00:06:19.600
<font face="HK Grotesk">Which is the distance between
the icon text and the block's border</font>

00:06:20.560 --> 00:06:22.280
<font face="HK Grotesk">In MoRe's configuration file.</font>

00:06:29.759 --> 00:06:32.639
<font face="HK Grotesk">If you want to use a different padding
in the current subsystem</font>

00:06:32.839 --> 00:06:36.559
<font face="HK Grotesk">You can overwrite the config values
in the action's dialog.</font>

00:06:48.720 --> 00:06:51.480
<font face="HK Grotesk">In addition you can use the same size</font>

00:06:51.500 --> 00:06:53.740
<font face="HK Grotesk">For blocks of the same block type</font>

00:07:01.680 --> 00:07:04.480
<font face="HK Grotesk">Which can result in a
more consistent layout.</font>

