Page tree

MagicDraw 2022x Refresh1 Documentation

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.

Sample model

The model used in these examples is the Case Studies for Querying the Model sample model. To open this model, you need to download case studies for querying the model.mdzip

  • No labels