The Relationship Creation dialog and/or submenu are available via the Create Relation command. This command is available in the element shortcut menu displayed upon right-clicking an element or its symbol in a view. The dialog and the submenu display a list of commands for creating specific relations between elements. Additionally, all commands can be structured into named categories, typically Incoming and Outgoing.

While there is a predefined submenu and dialog for displaying the predefined relationship creation commands, you can either customize the predefined dialog or create a new one from scratch. This way, you can create a custom model-based Relationship Creation dialog, listing only the relationship creation commands of your choice, allowing you to customize the Relationship Creation dialog based on the needs of your specific project.

The image on the left shows the Relationship Creation dialog according to the predefined SysMLRelationshipCreationDialog configuration. The image on the right shows the customized Relationship Creation submenu.  

Relationship Creation dialog composition and customization

The Create Relation command can invoke either a Relationship Creation dialog or the command's submenu. The submenu is displayed when there are no more than ten relationship creation commands. Otherwise, the Relationship Creation dialog is displayed instead of the submenu. Both the dialog and the submenu display the command categories containing the relationship creation commands. 

The image displays the Relationship Creation dialog (predefined) and the Relationship Creation submenu (custom) with commands structured into categories. 

There are two options for customizing the Relationship Creation dialog/submenu:

The relationship dialog/submenu, command categories, and individual commands have specific attributes available for customization. Whether you choose to customize the predefined dialog that comes with the modeling tool or create a new one from scratch, the attributes remain the same. Additionally, if you choose to customize the predefined dialog, you can employ the DS_UIComponents::UIComponents package with the SysMLRelationshipCreationDialog dialog definition, which contains predefined command categories and their commands. Reusing it allows you to easily modify the existing dialog, tailoring it to your needs.

You can activate the needed Relationship Creation dialog via the Active Relationship Element Dialog. See the (2026x Refresh1) Activating Relationship Creation dialog page.