QPR Knowledge Base 2017.1

Creating a Custom Element Type

Creating a Custom Element Type

Previous topic Next topic No directory for this topic  

Creating a Custom Element Type

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


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:


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:


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:


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