Book a Demo

Author Topic: Diagram Elements Visibility  (Read 4049 times)

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Diagram Elements Visibility
« on: April 14, 2015, 05:03:28 pm »
Hello,

I would like to display diagram elements' notes , and hide the elements type.

I tried to set it via diagram properties- checked the Notes checkbox, but nothing happens- only the element name is displayed.

Is it possible to set such properties for all diagrams at once? how?

Thanks.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Diagram Elements Visibility
« Reply #1 on: April 14, 2015, 10:44:23 pm »
So following our discussion on SO the flag does not work. This is most likely because you use MDG defined elements with shape script. Place a simple class with a note on a diagram and you see it will work.

q.

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Diagram Elements Visibility
« Reply #2 on: April 15, 2015, 06:09:33 pm »
Quote
So following our discussion on SO the flag does not work. This is most likely because you use MDG defined elements with shape script. Place a simple class with a note on a diagram and you see it will work.

q.

You are right!
My elements are collection of useful elements from built-in MDGs, so probably they are based on shape scripts.

Isn' t is possible to extend MDG elements instead of adding them as is to the toolbox?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Diagram Elements Visibility
« Reply #3 on: April 15, 2015, 06:36:21 pm »
I recently used this proverb: you can't have the cake and eat it the same time. You can define your own shape script and use DrawParentShape() to get the rendering from the MDG. But I can't recall anything that allows to check if the "hide notes" is turned on for the diagram and react accordingly (except writing an add-in and doing the test). So I'd say it's too much of an effort worth doing it. YMMV

q.

P.S. you might vote up my answer on SO although it does not present the real answer :)
P.P.S: That was quick :D
« Last Edit: April 15, 2015, 06:43:35 pm by qwerty »