Book a Demo

Author Topic: Access to diagram filters in API  (Read 6678 times)

DanF

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Access to diagram filters in API
« on: July 15, 2014, 11:03:50 pm »
Hey,

unfortunately the functions of the diagram filters are only capable to filter on theses few predefined values.
I need to filter diagrams towards tagged values.
For that reason i want to write own filter possibilities via an Add-In.
It seems that there is no access to the functionality the inbuilt diagram filter is already using... for whatever reason. (Maybe i just have not found the it yet?)

Something like grey scale or fade can however be archived via diagram object style i guess. But to hide elements is an essential requirement.

Connectors have a hide function so far, unfortunately i found no equivalent functions on other diagram elements.

Is there a possibility to access the diagram filter functionality?
If not, how do i hide diagram elements via API?

Thank you in advance.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Access to diagram filters in API
« Reply #1 on: July 15, 2014, 11:49:42 pm »
Hi,

you may set the style of a
  • Diagramlink
  • Diagramobject
via API.

As far as I know there is no special API according to diagram filters.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

DanF

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Access to diagram filters in API
« Reply #2 on: July 16, 2014, 12:28:04 am »
Thank you Helmut,

surely this works for Fade and Grey scale so far,
but is there a specific style setting to hide Elements?

Greetings
Dan


Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Access to diagram filters in API
« Reply #3 on: July 16, 2014, 01:09:07 am »
Hi Dan,

diagramlinks you can hide.

In case of diagramobjects you may try it. I'm sure that there is some kind of workaround to visualize filtered out elements.

My be there is someone who have tried it.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Access to diagram filters in API
« Reply #4 on: July 16, 2014, 07:30:35 pm »
Quote
Thank you Helmut,

surely this works for Fade and Grey scale so far,
but is there a specific style setting to hide Elements?

Greetings
Dan

"Hidden elements" are just no present on the diagram :D Just delete them.

q.

DanF

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Access to diagram filters in API
« Reply #5 on: July 18, 2014, 12:40:22 am »
Quote

"Hidden elements" are just no present on the diagram :D Just delete them.

q.

Hey qwerty,

what does "no present" exactly mean?
The current Diagram Filters are using a such a functionality. Therefore there must be a function to hide elements.
So i guess this does mean that it can not be accessed from within the API? (This would be very annoying.)

To simply delete the elements from the diagram is no real option as i do not want to change the diagram itself. I just want to filter them to specific aspects. Also it would slow down the usability of a filter mechanism, as i want to switch quickly between the different diagram aspects.

This is very uncomfortable. Why is such a functionality available but not accessible. :-?

Anyway thank you for your answer

Greetings
Dan
« Last Edit: July 18, 2014, 12:41:54 am by DanF »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Access to diagram filters in API
« Reply #6 on: July 18, 2014, 06:59:49 pm »
Well, the diagram filters are some EA functionally which (AFAIK) is not available from the APi. Setting an element invisible in the "normal" API context is that you remove it from the diagram. If you want to dynamically hide and show elements you need some external storage where you keep the original elements/positions.

Alternatively you could ask for an extension of the API.

q.