Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: EA_enthusiast on January 15, 2021, 07:55:35 am
-
Hello, EA experts,
Is there a way to filter objects with certain attribute value? For example (in the screenshots), can I filter to show only the objects where the attribute SWOT = Strength?
https://ibb.co/hM1Xnjj
https://ibb.co/nf0Psyy
If it it's not possible to be done using filter, is there any other way?
Thank you,
Mo
-
I don't think so. I could think of a scipt making those Selectable (as diagram property) and then use the filter with that name. Does not sound that attractive. But hey, it's EA and we're doing strange things here all day.
q.
-
Thank you, q.
Let's see if there's other "more attractive" solutions. Unfortunately, I don't write scripts :-[
I tried to use "Filters and Layers", but it does not work at all.
I created a Tag Value=Test for class 1
https://ibb.co/4tcTvw5
I set the filter
https://ibb.co/mJmhGNn
When I check the filter nothing happens.
https://ibb.co/RCR8h0h
Is this a bug?
-
Any advice? :)
-
I just don't use EA's marketing features (even if they are useful in rare cases). I played with the filter for a bit and immediately stumbled upon bugs. So I guess you got another one.
q.
-
So it is really a bug! It's sad that it has been fixed since then. This feature is available since 2016!
-
Well, that's a young bug. I had it with beasts more than 10 years old. Don't ask me which. I lost sight of any bugs in EA.
q.
-
;D
-
I just quickly tested it, and it works for me.
But if you set the filter on "contains" "test" then if will filter out all elements that don't have "test" as value in a tagged value.
Setting the filter to "not equals" works to filter out the ones that have "test" as tagged value. Downside of this approach is that it also filters all elements without tagged values.
Geert
-
Thank you so much for your response, Geert. I have just seen it today.
I tried the filters one more time and for some unknown reasons it worked as you explained!
Thank you,
Mo