Block Editor#
The Sherpa Designer interface allows you to create your own blocks and combine them into palettes. User-created blocks and palettes can be combined into packages using the "Package Manager" tool.
.png)
Packages can be exchanged through files (the "Local Packages" tab) or through the Orchestrator (the "Remote Packages" tab).
.png)
Developers can create their own block palettes and use similar palettes from other developers by agreement.
.png)
To create a new block, you need to click the button
, after which the "My Blocks Editor" window will open.
.png)
| No. | Interface Element | Description |
| "File" menu | ||
| 1.1. | "Delete All Blocks" item | Allows you to delete all blocks in the block editor. |
| 1.2. | "Open File..." item | Allows you to open a .xaml file to load blocks. |
| 1.3. | "Add from File..." item | Allows you to add blocks from a .xaml file to the current package. |
| 1.4. | "Save" item | Allows you to save the created block or save changes to the edited block. You can also use the keyboard shortcut Ctrl + S to save. |
| 1.5. | "Export to File..." item | Allows you to save the current package of blocks to a separate .xaml file. |
| 1.6. | "Close Window" item | Allows you to close the "My Blocks Editor" window. |
| "Edit" menu | ||
| 2.1 | "Correct Block Names" | Allows you to correct the internal names of blocks according to the required robot standard and exclude duplicate blocks. This may be necessary if you imported blocks from any external palette. |
| 3. | "Save" button | Allows you to save the created block or save changes to the edited block. You can also use the keyboard shortcut Ctrl + S to save. |
| 4. | "Export File" button | Allows you to save the current package of blocks to a separate .xaml file. |
| 5. | "Blocks" area | Allows you to create and manage blocks. |
| 6. | "Attributes" area | Displays the attributes of the selected block. |
| 7. | "Properties" area | Displays the properties of the selected block. |
| 8. | "Block Code" area | Displays the code of the block. |
The "Blocks" area allows you to manage your blocks: create and delete them, copy, paste, and move them within the list.
.png)
| No. | Interface Element | Description |
| 1. | button ![]() | Allows you to add a new block. |
| 2. | button ![]() | Allows you to delete the selected block. |
| 3. | button ![]() | Allows you to copy the selected block to the clipboard. |
| 4. | button ![]() | Allows you to paste the previously copied block from the clipboard. |
| 5. | button ![]() | Allows you to move the selected block up the list. |
| 6. | button ![]() | Allows you to move the selected block down the list. |
The "Attributes" area allows you to configure the attributes of the selected block and choose an image for the created block.
.png)
To change a block's attribute, you need to double-click the left mouse button on the field with the current attribute value and enter a new value in that field:
.png)
To change the "Image" attribute, you also need to click the button
to the right of the field with the current attribute value. In the opened window, select an image or click the "Upload Image from File" button and upload the desired image.
.png)
In the "Attributes" area, you can change the following block attributes:
| No. | Attribute | Attribute Description |
| 1. | Name | The name of the selected block. |
| 2. | Hint | The hint for the selected block. |
| 3. | Image | The image of the selected block. Supported formats for image upload: .jpg, .png, .jpeg. |
| 4. | Width | The width of the block image. |
| 5. | Height | The height of the block image. |
| 6. | Version | The version of the block. This attribute is not editable. |
The "Properties" area allows you to manage and configure the properties of the block.
.png)
| No. | Interface Element | Description |
| 1. | button ![]() | Allows you to add a new property. |
| 2. | button ![]() | Allows you to delete the selected property. |
| 3. | button ![]() | Allows you to copy the selected property to the clipboard. |
| 4. | button ![]() | Allows you to paste the previously copied property from the clipboard. |
| 5. | button ![]() | Allows you to move the selected property up the list. |
| 6. | button ![]() | Allows you to move the selected property down the list. |
To configure the properties of the block, the following parameters are offered.
.png)
| No. | Block Property Parameter | Description |
| 1. | Name | The name of the block property. This name is used in the block code. For example, if the name is set as “InVar”, it should be used in the code as $InVar. |
| 2. | Title | The name of the block in the Designer when creating a diagram. |
| 3. | Hint | A detailed description of the block property. |
| 4. | Category | The category of the block property.
|
| 5. | Type | The type of the block property.
|
| 6. | Value | The initial value of the block property. If necessary, an initial value should be set. If the category "output property" is selected, the name of the variable must be specified (for example, $MyVar). If the type "enumeration" is selected, the value must be specified without quotes (for example, MyEnum1). |
| 7. | Enumeration Value | The enumeration value of the block property. If the type is selected as "enumeration", values must be specified separated by semicolons (for example, MyEnum1;MyEnum2;MyEnum3). |
| 8. | Default Value | The default value of the block property. If the property is empty, this value will be used. Applicable only to optional Expression properties. |
The "Block Code" area allows you to display the code that the block will execute.
.png)
| No. | Interface Element | Description |
| 1. | button ![]() | Allows you to undo an action. |
| 2. | button ![]() | Allows you to redo an action. |
| 3. | "Add Property" button![]() | Allows you to add a property. |
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)