This shows you the differences between two versions of the page.
modeling_2.0 [2025/06/19 11:20] ale |
modeling_2.0 [2025/06/19 11:58] (current) ale [Renaming variables in the diagram] |
||
---|---|---|---|
Line 74: | Line 74: | ||
This new functionality is accessed through a new context menu option with the right mouse button, by clicking on a certain element of the diagram. To do this, the diagram must be unlocked. This option appears by clicking on: a message, a gate or a fragment of the diagram. | This new functionality is accessed through a new context menu option with the right mouse button, by clicking on a certain element of the diagram. To do this, the diagram must be unlocked. This option appears by clicking on: a message, a gate or a fragment of the diagram. | ||
- | \\ \\ {{ :en:edit_diagram:picture1renamingvariables.png?nolink&500 |}} | + | \\ \\ {{ :en:edit_diagram:picture1renamingvariables.png?nolink&500 |}}\\ |
If no variable is declared in the element on which this action is executed, then the following message will appear: | If no variable is declared in the element on which this action is executed, then the following message will appear: | ||
- | \\ \\ {{ :en:edit_diagram:picture2renamingvariables.png?nolink&500 |}} | + | \\ \\ {{ :en:edit_diagram:picture2renamingvariables.png?nolink&500 |}}\\ |
On the other hand, if there are variables declared in the element, the following modal dialog for renaming variables appears: | On the other hand, if there are variables declared in the element, the following modal dialog for renaming variables appears: | ||
Renaming variables dialog. | Renaming variables dialog. | ||
- | \\ \\ {{ :en:edit_diagram:picture3renamingvariables.png?nolink&500 |}} | + | \\ \\ {{ :en:edit_diagram:picture3renamingvariables.png?nolink&500 |}}\\ |
In this modal there are different **items**:\\ | In this modal there are different **items**:\\ | ||
* **Variable list**: This combo shows the list with all the variables declared in the selected item. This list does not contain neither global variables nor repository variables. | * **Variable list**: This combo shows the list with all the variables declared in the selected item. This list does not contain neither global variables nor repository variables. | ||
Line 88: | Line 88: | ||
* **“Rename” button**: Once the new variable name has been entered in its field, pressing this button automatically replaces all occurrences of that variable in the diagram. Once the variables have been renamed in the diagram, a message will appear for information purposes indicating the number of elements in which the variable has been renamed. | * **“Rename” button**: Once the new variable name has been entered in its field, pressing this button automatically replaces all occurrences of that variable in the diagram. Once the variables have been renamed in the diagram, a message will appear for information purposes indicating the number of elements in which the variable has been renamed. | ||
- | \\ \\ {{ :en:edit_diagram:picture4renamingvariables.png?nolink&500 |}} | + | \\ \\ {{ :en:edit_diagram:picture4renamingvariables.png?nolink&500 |}}\\ |
* **Revert the changes**: After renaming a variable, if for some reason you want to revert the changes and leave the diagram in its previous state, just press the **“Undo”** option from the context menu, or use the **CTRL+Z** key combination. | * **Revert the changes**: After renaming a variable, if for some reason you want to revert the changes and leave the diagram in its previous state, just press the **“Undo”** option from the context menu, or use the **CTRL+Z** key combination. | ||
| |