Match Block Size to Icon Text

This action allows you to automatically resize blocks to match the text displayed on their icon. For example, Constant blocks are resized so that the parameter value is displayed in full instead of as "-C-". Or the size of Goto and From blocks is resized to match the size of their tag name. This action also makes oversized blocks smaller resulting in a uniform layout for blocks that have icon text.

You can also apply the action to multiple blocks at the same time. If you apply the action for multiple blocks simultaneously, blocks of the same type can be given the same size. This is particularly useful when the blocks are vertically aligned and should have the same size for a more uniform or attractive layout.

The action supports the following block types: Constant, Enumerated Constant, Compare To Constant, Compare To Zero, Goto and From, DataStoreRead and DataStoreWrite, DataStoreMemory, DataTypeConversion, FromFile and ToFile, FromWorkspace and ToWorkspace, GotoTagVisibility and Trigonometry.

The action can be performed on all selected blocks or, if no blocks are selected, on all supported blocks in the current subsystem.

In MoRe's configuration file, you can predefine the padding, which is the distance between the icon text and the border of the block. This default padding can then be overwritten in the dialog if desired.

You can use the action demo model as part of the MoRe demo model to try out the action and learn how to use it.

Example 1:

Match the size of the selected Constant block to its parameter value and the size of the selected Goto block to its tag.

Example 2:

Match a block that is too small and one that is too large to its icon text.

Example 3:

Use the same size for all selected blocks of the same type.

Example 4:

Match all block sizes in the subsystem to their icon text, using the same size for blocks of the same type.

Usage:

Select the blocks you want to match. If you want to match all supported blocks in the current subsystem, select nothing. Then start the action via the MoRe menu.