QPR Knowledge Base 2014.1

Creating a Custom Element Type

Creating a Custom Element Type

Previous topic Next topic  

Creating a Custom Element Type

Previous topic Next topic JavaScript is required for the print function  

EA_icon

QPR Modeling Client features a custom element type that can be defined for a range of uses.

 

mouse_24 Exercise 80: Create a new custom element type.

 

BTN_AR131. Create a new model using the Default settings template.
BTN_AR132. On the Model tab of the ribbon, click on Modeling Options. The Modeling Options dialog will open.
BTN_AR133. Click the btn_drop_down_menu button next to the New button and select Element Type from the drop-down menu:

pic_create_new_custom_element

BTN_AR134. The Element Type dialog will open. On the General tab, name the element Custom Element Example.
BTN_AR135. Switch to the Behavior tab. We'll want to be able to draw the element on the diagrams, so select Allow element creation on diagrams.
BTN_AR136. In addition, select Allow flow linking and Allow information item linking. The dialog should look like in the picture below:

dlg_custom_element_behavior

BTN_AR137. Switch to the Modeling tab. Click on the btn_drop_down_menu in the Icon for Hierarchies and Stencil Buttons group and select an icon from the drop-down menu. Alternatively, you can click on Browse... and select an image from your hard drive. This icon will be used in the Navigator View hierarchies and QPR Portal Views.
BTN_AR138. Click OK to close the Element Type dialog and again OK to close the Modeling Options dialog. The custom element type is now defined and should be visible under the Elements section in the Tool Palette:

pic_tool_palette_custom_element

See the Custom Element topic and its subtopics in QPR Modeling Client - User's Guide for more information about custom elements.