Page History
To color ports by their type
...
- Create a Legend and a legend item Legend Item.Open the
- Right-click the Legend Item to open its Specification window of a legend Item.
- Click three dots next to the Adornment property to edit itClick the specification cell of the Adornment property, and then click .
- In the Adornment Properties dialog, specify the desired adornment properties.
- Select the specification cell of the Elements by Condition property, and click .
- Click OK.
- Click three dots next to the Elements by Condition property to edit it. Elements by Condition dialog opens.
Click Expert at Click Expert at the bottom of the dialog. The dialog is switched to the Expert mode.
- In the Structured Expression dialog on the left, click Create operation.
- Select the Metachain Navigation operation type.
Click the Insert button to create the first step of the Metachain.
- Select Create operation > Metachain Navigation.
Click Insert.
- Select Port under Metaclass or Stereotype and under Property, select
Under Metaclass or Stereotype, select Port, and under Property, select
Type.
- In the Structured Expression dialog on the left, click Create operation.
- Select the Operation from Model operation type.
Select the Contains opaque behavior from the model.
- Select Create operation > Operation from Model > Contains.
- Drag-and-drop Metachain Navigation onto On the left side of the dialog, expand the Contains operation and drag-and-drop the previously created Metachain Navigation on the Input parameter.
- On the left side of the dialog, click the Obj parameter of the Contains operation.
- Select Element from the Values category.
- Click and specify the Select Obj > Element > select the port type to verify.
- Click OK.
Sample project: Coloring ports by their type.mdzip
...