Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Content layer
id967284465
Content column
id967284478
Content block
id967284468

To color ports by their type


  1. Create a Legend and a legend item Legend Item.Open the
  2. Right-click the Legend Item to open its Specification window of a legend Item.
     
  3. Click three dots Image Added next to the Adornment property to edit itClick the specification cell of the Adornment property, and then click Image Removed.
  4. In the Adornment Properties dialog, specify the desired adornment properties.
  5. Select the specification cell of the Elements by Condition property, and  click Image Removed.
  6. Click OK.
  7. Click three dots Image Added next to the Elements by Condition property to edit it. Elements by Condition dialog opens.
  8. Click Expert at Click Expert at the bottom of the dialog. The dialog is switched to the Expert mode.

  9. In the Structured Expression dialog on the left, click Select Create operation .Select the Metachain Navigation operation type→ Metachain Navigation.
  10. Click the Insert button to create the first step of the Metachain

  11. Click Insert.

  12. Select Port under 

    Under 

    Metaclass or Stereotype, select Port, and under

    Property

     Property,

    select 

    select Type.
    Image Modified

  13. In the Structured Expression dialog on the left, click Select Create operation .Select the → Operation from Model operation type.
  14. Select the Contains opaque behavior from the model.

  15.  → Contains.
  16. 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.
  17. On the left side of the dialog, click the Obj parameter of the Contains operation.
  18. Select Element from the Values category.
  19. Click Image Removed and specify the Select Obj → Element → select the port type to verify.
  20. Click OK.
Content block
id967284464

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