To color ports by their type


  1. Create a Legend and a Legend Item.
  2. Right-click the Legend Item to open its Specification window
  3. Click three dots  next to the Adornment property to specify it. Click OK.
  4. Click three dots  next to the Elements by Condition property to edit it. Elements by Condition dialog opens.
  5. Select Create operation > Metachain Navigation.
  6. Click Insert.

  7. Under Metaclass or Stereotype, select Port, and under Property, select Type.

  8. Select Create operation > Operation from Model > Contains.
  9. Drag-and-drop Metachain Navigation onto Input parameter.
  10. Select Obj > Element > select the port type to verify.
  11. Click OK.