QPR Knowledge Base 2017.1

Adding Elements to a Model

Adding Elements to a Model

Previous topic Next topic No directory for this topic  

Adding Elements to a Model

Previous topic Next topic Topic directory requires JavaScript Mail us feedback on this topic!  

Elements are added to the model by selecting an element button on the tool palette and clicking the wanted position on the diagram. Adding several elements of the same type after each other can be done by double clicking the element selection on the tool palette. After this just place the elements on the diagram view.

 

 

mouse_24 Exercise 51: Add elements to the model.

 

BTN_AR131. Create a new model using the Default settings template.
BTN_AR132. On the Tool Palette, double-click the Activity process step.
BTN_AR133. Click on the diagram to create new Activity process steps somewhat as in the picture below:

pic_adding_elements1

BTN_AR134. On the Tool Palette, click the Decision process step.
BTN_AR135. Click on the diagram to create a new Decision process step so that the diagram will look somewhat as in the picture below:

pic_adding_elements2

Note that when you don't double click a process step on the Tool Palette, you can only create one process step of the chosen type at one selection

BTN_AR136. Save the model.

 

One way to add elements to a model is to drag the desired element from the Tool Palette to the diagram.

 

 

mouse_24 Exercise 52: Add elements to the model using Drag & Drop drawing.

 

BTN_AR131. Create a new model using the Default settings template.
BTN_AR132. On the Tool Palette, click the Activity button and hold the mouse button down, and drag the element on the diagram:

pic_drag_and_drop_modeling

BTN_AR133. Drag the Activity element to the desired location and release the mouse button. The element will be created on the location where you release the mouse button.
BTN_AR134. Repeat step number two.
BTN_AR135. Press the Esc key. The element creation is canceled. Another way to cancel the element creation is to drag the mouse pointer outside the diagram area and then release the mouse button.

 

Another way to add elements to a model is to use Quick Modeling. When using Quick Modeling, a connector connecting the elements is created with the new element.

 

 

mouse_24 Exercise 53: Add elements to the model using Quick Modeling.

 

BTN_AR131. Create a new model using the Default settings template.
BTN_AR132. On the Tool Palette, click the Activity process step.
BTN_AR133. Click on the diagram to create new Activity process step.
BTN_AR134. Point the mouse over the newly created process step in order to make the Quick Modeling hotspots visible.
BTN_AR135. Point the mouse over a hotspot and click the element in the middle of the menu that opens:

pic_quick_modeling_select_element

BTN_AR136. A Decision type process step will be created, and the two process steps are connected with a connector. Give the newly created process step a name:

pic_quick_modeling_new_element

 

More information about Quick Modeling can be found in the QPR Modeling Client - User's Guide under the Quick Modeling topic.

 

 

QPR Modeling Client features alignment guides that help in aligning the elements on the diagram. Before doing the following exercise, make sure the alignment guides are enabled from the Options Dialog accessible from the Application Menu.

 

 

mouse_24 Exercise 54: Use alignment guides.

 

BTN_AR131. Create a new model using the Default settings template.
BTN_AR132. On the Tool Palette, double-click the Activity button.
BTN_AR133. Click three times on the diagram to create three elements, and name them.
BTN_AR134. Click the second element, and holding the mouse button down, drag the second element next to the first element so that the alignment guide is visible in the middle of the elements:

pic_alignment_guide_1

BTN_AR135. Release the mouse button.
BTN_AR136. Click the third element, and holding the mouse button down drag the third element next to the second element so that the alignment guide is visible in the middle of the elements:

pic_alignment_guide_2

BTN_AR137. Drag the third element closer to the second element until the arrows on the alignment guide become visible:

pic_alignment_guide_3

BTN_AR138. Release the mouse button. The distance from the middle element to the neighboring elements is now even and the elements are aligned.