Variable declaration

A “Variable declaration” is used for adding a variable to a class (program, function block, function) or data structure (DUT) in the class diagram.

Add Variable

In the “Toolbox” click on “Variable declaration”:Variable declaration 1:

Then select an element in the diagram for extending by a variable. If you try to select a non-reasonable position, the cursor will look like a prohibition sign. At reasonable position it appears as a blue cross. If you click at such a position, then the dialog “Auto declare” opens for adding a variable to the focused element. Insert the required settings as usual. After having closed the dialog, the focused element gets extended by the new variable. An appropriate update will be done synchronously in the class diagram and in the object editor.

Look of the cursor