Author Topic: V13 - Diagram.FilterElements property  (Read 4496 times)

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
V13 - Diagram.FilterElements property
« 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

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: V13 - Diagram.FilterElements property
« Reply #1 on: July 11, 2016, 05:19:14 pm »
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.

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
Re: V13 - Diagram.FilterElements property
« Reply #2 on: July 12, 2016, 05:35:52 pm »
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!