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.

Packages can be exchanged through files (the "Local Packages" tab) or through the Orchestrator (the "Remote Packages" tab).

Developers can create their own block palettes and use similar palettes from other developers by agreement.

To create a new block, you need to click the button , after which the "My Blocks Editor" window will open.

No.Interface ElementDescription
"File" menu
1.1."Delete All Blocks" itemAllows you to delete all blocks in the block editor.
1.2."Open File..." itemAllows you to open a .xaml file to load blocks.
1.3."Add from File..." itemAllows you to add blocks from a .xaml file to the current package.
1.4."Save" itemAllows 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..." itemAllows you to save the current package of blocks to a separate .xaml file.
1.6."Close Window" itemAllows 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" buttonAllows 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" buttonAllows you to save the current package of blocks to a separate .xaml file.
5."Blocks" areaAllows you to create and manage blocks.
6."Attributes" areaDisplays the attributes of the selected block.
7."Properties" areaDisplays the properties of the selected block.
8."Block Code" areaDisplays 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.

No.Interface ElementDescription
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.

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:

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.

In the "Attributes" area, you can change the following block attributes:

No.AttributeAttribute Description
1.NameThe name of the selected block.
2.HintThe hint for the selected block.
3.ImageThe image of the selected block.

Supported formats for image upload: .jpg, .png, .jpeg.
4.WidthThe width of the block image.
5.HeightThe height of the block image.
6.VersionThe version of the block.

This attribute is not editable.

The "Properties" area allows you to manage and configure the properties of the block.

No.Interface ElementDescription
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.

No.Block Property ParameterDescription
1.NameThe 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.TitleThe name of the block in the Designer when creating a diagram.
3.HintA detailed description of the block property.
4.Category

The category of the block property.

Available values:

  • Main properties – main properties;
  • Required – required property;
  • Output – output property.
5.Type

The type of the block property.

Available values:

  • Expression – any expression;
  • Variable – only a variable;
  • Enum – enumeration;
  • Int64 – integer.
6.ValueThe 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 ValueThe 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 ValueThe 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.

No.Interface ElementDescription
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.