# Diagram Menu

The "Diagram" menu contains buttons for actions that are necessary when building a Robot diagram.

<figure><img src="https://3199517203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4mXXYsqBuhj7RyX6Y4Yw%2Fuploads%2Fgit-blob-c9528432ca86b1abc20afede2e3b7146ea687e9c%2Fimage%20(252).png?alt=media" alt=""><figcaption></figcaption></figure>

Below is a list of these buttons with descriptions of their functions.

<table data-header-hidden><thead><tr><th width="60.86669921875"></th><th width="255.7166748046875"></th><th width="310.449951171875"></th></tr></thead><tbody><tr><td><strong>No.</strong></td><td><strong>Interface Element</strong></td><td><strong>Description</strong></td></tr><tr><td><ol><li></li></ol></td><td>"Align" button</td><td>Allows you to align the selected blocks according to a specified rule.</td></tr><tr><td><ol start="2"><li></li></ol></td><td>"Position" button</td><td>Allows you to change the order of overlapping blocks.</td></tr><tr><td><ol start="3"><li></li></ol></td><td>"Full Block Check" button</td><td>Allows you to perform a full check of the properties of the blocks.</td></tr><tr><td><ol start="4"><li></li></ol></td><td>"Remove Unused Variables" button</td><td>Allows you to find and remove unused variables.</td></tr><tr><td><ol start="5"><li></li></ol></td><td>"Compile Code Call Blocks" button</td><td>Allows you to compile all code call blocks in the project. This action speeds up the operation of these blocks.</td></tr><tr><td><ol start="6"><li></li></ol></td><td>"Group" button</td><td>Allows you to group selected blocks so that they can be moved as a single unit.</td></tr><tr><td><ol start="7"><li></li></ol></td><td>"Ungroup" button</td><td>Allows you to ungroup previously grouped blocks.</td></tr></tbody></table>

The "**Align**" button in the tools menu allows you to align the selected blocks according to a specified rule. To choose the desired option, you need to click the icon ![](https://3199517203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4mXXYsqBuhj7RyX6Y4Yw%2Fuploads%2Fgit-blob-76f09ba00c8837a30738a902d3e57a272bcab98d%2F2025-07-04_00-42-18%20\(1\).png?alt=media) under the "Align" button.

<figure><img src="https://3199517203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4mXXYsqBuhj7RyX6Y4Yw%2Fuploads%2Fgit-blob-b73f70f17df701b68820bd690081e9a967740ecc%2F2025-11-20_21-16-26.png?alt=media" alt=""><figcaption></figcaption></figure>

The "**Position**" button in the tools menu allows you to change the order of overlapping blocks. To choose the desired option, you need to click the icon ![](https://3199517203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4mXXYsqBuhj7RyX6Y4Yw%2Fuploads%2Fgit-blob-76f09ba00c8837a30738a902d3e57a272bcab98d%2F2025-07-04_00-42-18%20\(1\).png?alt=media) under the "Position" button.

<figure><img src="https://3199517203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4mXXYsqBuhj7RyX6Y4Yw%2Fuploads%2Fgit-blob-33ff0d638c8c0e9ae6d5daaf52dbe7fd93725c34%2Fimage%20(253).png?alt=media" alt=""><figcaption></figcaption></figure>

The automatic arrangement of blocks is demonstrated in the following video:

{% embed url="<https://sherparpa.ru/ucontent/?0D>" %}

Automatic arrangement of blocks using a large project with a complex structure:

{% embed url="<https://sherparpa.ru/ucontent/?QhZl>" %}
