WEBVTT

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

00:00:12.000 --> 00:00:15.240
<font face="HK Grotesk">two of the most important
actions of MES Model & Refactor.</font>

00:00:15.240 --> 00:00:18.600
<font face="HK Grotesk">Called Auto Layout and Refine Layout.</font>

00:00:18.632 --> 00:00:23.200
<font face="HK Grotesk">With these actions you can achieve a clean
and consistent layout for your models.</font>

00:00:23.600 --> 00:00:25.920
<font face="HK Grotesk">Let's start with the Auto Layout action.</font>

00:00:30.420 --> 00:00:32.440
<font face="HK Grotesk">With Auto Layout you can automatically</font>

00:00:32.440 --> 00:00:36.060
<font face="HK Grotesk">arrange all blocks and route all signal
lines in the current subsystem.</font>

00:00:44.460 --> 00:00:48.120
<font face="HK Grotesk">The action arranges the blocks according
to the data flow from left to right.</font>

00:00:50.880 --> 00:00:52.560
<font face="HK Grotesk">It aligns blocks horizontally</font>

00:00:55.020 --> 00:00:57.660
<font face="HK Grotesk">and place it them vertically</font>

00:00:57.660 --> 00:00:59.920
<font face="HK Grotesk">to reduce line crossings and line
bends.</font>

00:00:59.940 --> 00:01:03.840
<font face="HK Grotesk">so that all signal lines can be
routed as straight as possible.</font>

00:01:08.100 --> 00:01:11.281
<font face="HK Grotesk">As a result the subsystem
is easy to understand</font>

00:01:11.555 --> 00:01:13.329
<font face="HK Grotesk">and guideline compliant.</font>

00:01:13.353 --> 00:01:16.460
<font face="HK Grotesk">For example the data
flows from left to right.</font>

00:01:16.460 --> 00:01:19.562
<font face="HK Grotesk">Input blocks are placed on the left</font>

00:01:19.586 --> 00:01:23.420
<font face="HK Grotesk">and output blocks are placed on the right.</font>

00:01:23.880 --> 00:01:27.468
<font face="HK Grotesk">And all blocks have enough
spacing to show signal names</font>

00:01:27.492 --> 00:01:30.480
<font face="HK Grotesk">and block names clearly
without any overlap.</font>

00:01:33.900 --> 00:01:36.388
<font face="HK Grotesk">Documentation blocks
and control port blocks</font>

00:01:36.402 --> 00:01:38.890
<font face="HK Grotesk">are also placed in
accordance to guidelines.</font>

00:01:41.880 --> 00:01:45.112
<font face="HK Grotesk">In addition Auto layout
ensures a consistent layout</font>

00:01:45.136 --> 00:01:47.480
<font face="HK Grotesk">across all subsystems of your model,</font>

00:01:48.060 --> 00:01:51.900
<font face="HK Grotesk">simplifying readability and
maintainability of the model.</font>

00:01:52.800 --> 00:01:54.874
<font face="HK Grotesk">Let's have a look at another example.</font>

00:01:54.898 --> 00:01:59.480
<font face="HK Grotesk">Imagine you're working on this subsystem
on a higher structural level of your model.</font>

00:01:59.500 --> 00:02:04.720
<font face="HK Grotesk">On these higher levels you
usually find large subsystem blocks</font>

00:02:08.320 --> 00:02:14.980
<font face="HK Grotesk">and many small blocks next to the large
blocks like constant or terminator blocks.</font>

00:02:18.060 --> 00:02:20.993
<font face="HK Grotesk">Manually cleaning up the
layout of such a subsystem</font>

00:02:20.994 --> 00:02:23.800
<font face="HK Grotesk">is time consuming and tedious.</font>

00:02:38.520 --> 00:02:42.120
<font face="HK Grotesk">With Auto Layout you can clean up
the layout with just one click.</font>

00:02:48.960 --> 00:02:51.920
<font face="HK Grotesk">Even if you have created
such a clean layout manually</font>

00:02:51.920 --> 00:02:56.920
<font face="HK Grotesk">these types of subsystems often need to be
functionally adapted to new requirements.</font>

00:03:23.100 --> 00:03:25.560
<font face="HK Grotesk">Then you need to manually
clean up the layout again.</font>

00:03:45.840 --> 00:03:49.120
<font face="HK Grotesk">Instead of wasting your time with
these manual adjustments</font>

00:03:49.120 --> 00:03:53.600
<font face="HK Grotesk">you can again use Auto Layout to correct
the layout quickly and easily.</font>

00:04:01.500 --> 00:04:04.820
<font face="HK Grotesk">Even after small changes
like signal renaming</font>

00:04:04.820 --> 00:04:08.120
<font face="HK Grotesk">you can easily update the layout
to readjust the block spacing</font>

00:04:23.100 --> 00:04:26.238
<font face="HK Grotesk">If you want to clean up only
a small part of a subsystem,</font>

00:04:26.262 --> 00:04:29.550
<font face="HK Grotesk">without changing the overall
layout that you have created,</font>

00:04:29.574 --> 00:04:32.220
<font face="HK Grotesk">you can apply the action
to a selected sub area.</font>

00:04:34.080 --> 00:04:36.660
<font face="HK Grotesk">To do this just drag
the selection rectangle</font>

00:04:39.780 --> 00:04:41.220
<font face="HK Grotesk">and then select the action.</font>

00:04:45.420 --> 00:04:48.420
<font face="HK Grotesk">The menu entry of the action
now ends with the word selection.</font>

00:04:53.400 --> 00:04:55.644
<font face="HK Grotesk">The action then cleans
up only the selected part</font>

00:04:55.648 --> 00:04:58.200
<font face="HK Grotesk">without changing the rest of the subsystem.</font>

00:05:00.960 --> 00:05:02.693
<font face="HK Grotesk">Here is another typical example</font>

00:05:02.717 --> 00:05:06.420
<font face="HK Grotesk">where you may want to apply the
action only to a selected sub area</font>

00:05:08.460 --> 00:05:12.020
<font face="HK Grotesk">because you don't want to change
the overall structure of your layout.</font>

00:05:23.100 --> 00:05:26.700
<font face="HK Grotesk">You can also set custom parameters
for blocks and lines with the action.</font>

00:05:33.360 --> 00:05:35.280
<font face="HK Grotesk">For example you can color port blocks</font>

00:05:39.180 --> 00:05:42.170
<font face="HK Grotesk">or enable signal
propagation for signal lines</font>

00:05:42.194 --> 00:05:44.160
<font face="HK Grotesk">according to your guidelines.</font>

00:05:47.040 --> 00:05:50.480
<font face="HK Grotesk">You can simply activate the feature
via the more preferences menu.</font>

00:05:53.340 --> 00:05:56.100
<font face="HK Grotesk">Now let's have a look at the
action called Refine Layout.</font>

00:06:01.680 --> 00:06:04.990
<font face="HK Grotesk">The Refine Layout action is similar
to the Auto Layout action</font>

00:06:04.990 --> 00:06:10.240
<font face="HK Grotesk">because it also creates a clean and uniform
layout for the current subsystem.</font>

00:06:11.220 --> 00:06:13.080
<font face="HK Grotesk">However unlike Auto Layout</font>

00:06:13.104 --> 00:06:17.440
<font face="HK Grotesk">the result of Refine Layout is
based on your current layout.</font>

00:06:25.500 --> 00:06:28.440
<font face="HK Grotesk">Now let's compare this with
the result of Auto Layout.</font>

00:06:36.480 --> 00:06:40.077
<font face="HK Grotesk">The result of Auto Layout
is also clean and readable</font>

00:06:40.101 --> 00:06:43.100
<font face="HK Grotesk">but is very different
from your original layout</font>

00:06:43.198 --> 00:06:46.120
<font face="HK Grotesk">because it doesn't take
into account the initial state.</font>

00:06:48.840 --> 00:06:51.943
<font face="HK Grotesk">So if you want to have a clean layout
similar to your existing one</font>

00:06:51.960 --> 00:06:55.740
<font face="HK Grotesk">you can use Refine Layout
instead of Auto Layout.</font>

00:07:00.540 --> 00:07:05.613
<font face="HK Grotesk">Refine Layout gives you full control over
the overall layout of your subsystem.</font>

00:07:06.700 --> 00:07:08.915
<font face="HK Grotesk">You can define the structure of the layout</font>

00:07:08.915 --> 00:07:12.035
<font face="HK Grotesk">by roughly placing the blocks and
lines where you want them.</font>

00:07:29.680 --> 00:07:32.468
<font face="HK Grotesk">The action then preserves this structure</font>

00:07:32.492 --> 00:07:35.440
<font face="HK Grotesk">and takes care of the remaining
time-consuming tasks,</font>

00:07:35.441 --> 00:07:38.721
<font face="HK Grotesk">such as aligning blocks
and optimizing line routes.</font>

00:07:52.700 --> 00:07:54.499
<font face="HK Grotesk">The full power of Refine Layout</font>

00:07:54.499 --> 00:07:57.856
<font face="HK Grotesk">can be seen when you
apply it multiple times in a row.</font>

00:07:58.560 --> 00:08:02.940
<font face="HK Grotesk">So imagine you want to clean up the layout
of this subsystem with a Refine Layout.</font>

00:08:08.460 --> 00:08:12.440
<font face="HK Grotesk">The result looks like this because
it is similar to the original layout.</font>

00:08:13.620 --> 00:08:15.883
<font face="HK Grotesk">Now if you're not satisfied with the result</font>

00:08:15.907 --> 00:08:18.540
<font face="HK Grotesk">you can just roughly adjust
the layout as you wish.</font>

00:08:19.250 --> 00:08:22.190
<font face="HK Grotesk">For example you may want
the conversion blocks here</font>

00:08:26.160 --> 00:08:28.600
<font face="HK Grotesk">and the smaller blocks here.</font>

00:08:30.540 --> 00:08:32.160
<font face="HK Grotesk">Then just restart the action.</font>

00:08:36.720 --> 00:08:41.198
<font face="HK Grotesk">Maybe you're still not satisfied because
you would like to have these blocks here</font>

00:08:41.422 --> 00:08:42.940
<font face="HK Grotesk">further to the left.</font>

00:08:46.740 --> 00:08:49.380
<font face="HK Grotesk">Then just move them and restart the action.</font>

00:08:53.100 --> 00:08:57.660
<font face="HK Grotesk">This way you can optimize the layout
step by step until it meets your demands.</font>

00:09:00.300 --> 00:09:03.850
<font face="HK Grotesk">In the same way you can also
optimize the line routing</font>

00:09:03.850 --> 00:09:06.600
<font face="HK Grotesk">if you are not satisfied
with the initial result.</font>

00:09:27.180 --> 00:09:29.640
<font face="HK Grotesk">Refine Layout is also very convenient</font>

00:09:29.640 --> 00:09:33.380
<font face="HK Grotesk">to update the layout after you have
changed your subsystem manually.</font>

00:09:34.440 --> 00:09:36.608
<font face="HK Grotesk">So imagine you're working on this subsystem</font>

00:09:36.632 --> 00:09:38.900
<font face="HK Grotesk">and you add a new
signal line and a new block.</font>

00:09:52.140 --> 00:09:56.040
<font face="HK Grotesk">If you use Auto Layout the result
may look quite different than before</font>

00:09:56.040 --> 00:09:57.604
<font face="HK Grotesk">because of the new elements.</font>

00:10:09.480 --> 00:10:12.195
<font face="HK Grotesk">So if you just want to
update the layout gradually</font>

00:10:12.219 --> 00:10:13.512
<font face="HK Grotesk">and keep it similar to before</font>

00:10:13.536 --> 00:10:16.579
<font face="HK Grotesk">Refine Layout can do just that for you.</font>

00:10:24.600 --> 00:10:30.000
<font face="HK Grotesk">As with Auto Layout you can also use
Refine Layout to set custom parameters</font>

00:10:30.000 --> 00:10:34.380
<font face="HK Grotesk">for blocks and lines such as block
colors or signal label propagation</font>

