Author Topic: Apply Diagram Filter to Diagram.diagramObjects  (Read 3449 times)

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Apply Diagram Filter to Diagram.diagramObjects
« on: March 15, 2013, 07:59:40 pm »
I need to get back the contents of a diagram. Diagram.diagramObjects does this perfectly, but what about when the user has applied a Diagram Filter. Great feature, but how can I get the sub-set of diagramObjects from the diagram with the filter applied?
Looking at the format of the filter definition in t_xrefsystem (found that thanks to https://leanpub.com/InsideEA) its really complicated, so no chance to do the filtering myself.
Any ideas ?
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Apply Diagram Filter to Diagram.diagramObjects
« Reply #1 on: March 15, 2013, 08:38:08 pm »
No, sorry, no idea other then to figure out the complicated definition of the filter.

Or send in a feature request and have a lot of patience :-/

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Apply Diagram Filter to Diagram.diagramObjects
« Reply #2 on: March 15, 2013, 10:09:21 pm »
Good morning Australia!

I wonder why the API hides so many features which are only available to manual use. In order to make EA a really powerful tool it's necessary to provide as much as possible via the API.

q.