Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: McMannus on July 09, 2016, 11:17:38 am
-
Hi guys,
today I played around with the EA13 beta and found the new Diagram.FilterElements property interesting from its advertisement in the API docs.
However, I don't quite understand the effect of this feature.
What I thought, this feature is doing: I'm currently applying a diagram filter to a diagram, where everything is greyed out. By adding a comma-separated list of element IDs to the property, exactly these elements are not greyed out anymore.
Could of course also be vice versa, but nothing happened in my case :-(
May someone bring light in the dark?
Jan
-
The filter you have enabled in the Diagram Filters window might be overriding what you are trying to do via the API. Try setting the value of Diagram.FilterElements again without anything ticked in the Diagram Filters window.
-
Thanks Aaron, that's even better. for my use case However, I noticed that the last element ID I'm passing into the CSV list (which is interestingly always the lowest ID. Is the Diagram.SelectedObjects collection sorted descending?) is not filtered.
Might be a bug!