Book a Demo

Author Topic: Diagram Filters Hide Connectors with Elements  (Read 6816 times)

GeistBW

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Diagram Filters Hide Connectors with Elements
« on: January 15, 2019, 08:24:47 am »
Hi, I'm new to the Sparx world. We are using EA version 14 Ultimate.  I have model diagram with Business Entities sharing several PIM that can connect variously to many PSM. I'm using a view to be able to show/hide PSM depending on which Business Entity I'm talking to.  So what I have in my view is the main PIM and many PSM with Realization Connectors to the main PIM.

I wanted to only show the PSM that were applicable to the Business Entity I choose. So I named the connectors to match the Business Entity (for example: Care, Prov, Data).  I "want" the Diagram Filter to hide the connector and the PSM if it doesn't equal my choice (for example: Care). But I can only get the connector to hide.

Is there any way I can accomplish this? Is there other filters that I can use? or Other ways to use the Diagram Filters that I haven't tried or found in my searching/learning?  I have seen older posts asking to add the Connector Source/Target to the Diagram Filters, but haven't seen any mention if it has or will be done.

Any help on how to do what I'm looking for will help me tremendously.
Thanx,
Sharon

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Diagram Filters Hide Connectors with Elements
« Reply #1 on: January 15, 2019, 08:53:13 am »
It only works the other way around.

ie. If you filter out an element, any relationships are automatically filtered out.

There's no way to specify that a particular element only exists on the diagram due to one or more connectors.

GeistBW

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Diagram Filters Hide Connectors with Elements
« Reply #2 on: January 15, 2019, 09:28:42 am »
So, I will stop going down that path, appreciate the confirmation.

The only other way I can think of doing this is to add a tag value to the PSM, with the Business Entity, each time I add a connection. Like I did by putting the Business Entity as the name of the connector. Then do the filter against that tag value of all the PSM.

Is there any better way to do this?

matthew.james

  • EA User
  • **
  • Posts: 155
  • Karma: +8/-3
  • Am I supposed to say something here ... ?
    • View Profile
Re: Diagram Filters Hide Connectors with Elements
« Reply #3 on: January 15, 2019, 09:50:19 am »
Not sure if this helps, but ... there is the dynamic filtering (Layout -> Filter).  You can set this to filter on 'Relationships', then when you click on any element in the diagram only that element and elements with a direct connection to it are shown (others are visually filtered out / hidden).

Note that this is 'one level' only, ie. only shows the elements with a direct connection to the one you've selected not the elements indirectly connected, and doesn't filter by the element type. Not sure if this behaviour can be replicated using other filtering and / or combined with other filtering to achieve what you are after.

GeistBW

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Diagram Filters Hide Connectors with Elements
« Reply #4 on: January 15, 2019, 10:04:47 am »
I have not seen anything about dynamic filtering. Can you direct me to where to find more info or provide a link? I'd like to try it. It may not work in this situation, but I have another view scenarios that it sounds great for (including the "one level" criteria.
Thanx

matthew.james

  • EA User
  • **
  • Posts: 155
  • Karma: +8/-3
  • Am I supposed to say something here ... ?
    • View Profile
Re: Diagram Filters Hide Connectors with Elements
« Reply #5 on: January 15, 2019, 02:17:35 pm »
@GeistBW - it's in the ribbon. Open a diagram and then go to Layout -> Filter

https://sparxsystems.com/enterprise_architect_user_guide/14.0/modeling_tools/context_filter_a_diagram.html

GeistBW

  • EA User
  • **
  • Posts: 26
  • Karma: +0/-0
    • View Profile
Re: Diagram Filters Hide Connectors with Elements
« Reply #6 on: January 16, 2019, 02:48:13 am »
Thanx for the help!