Author Topic: Intercept drawing of an element of connector  (Read 4054 times)

meierch

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
  • Modeling we can!
    • View Profile
Intercept drawing of an element of connector
« on: March 13, 2011, 03:50:47 am »
I would like to create a context sensitive filter on diagrams. For this I'm looking for a way to intercept the drawing of each element or connector on a diagram. Is there an event (or something else) which allows to decide in an add-in if and how (e.g. color) an element is drawn?

Christian
Regards
Christian

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Intercept drawing of an element of connector
« Reply #1 on: March 14, 2011, 07:52:05 pm »
I don't think so.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Intercept drawing of an element of connector
« Reply #2 on: March 14, 2011, 09:28:21 pm »
You can use the EA_OnPreNewElement  events to disallow creation of elements. I have used that only on minor occasions so I can't tell much more than what is written in the help file.

q.

meierch

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
  • Modeling we can!
    • View Profile
Re: Intercept drawing of an element of connector
« Reply #3 on: March 15, 2011, 11:24:59 pm »
I would like such a feature. I was thinking about a nice way to 'filter' or 'change the representation' of a diagram based on context information. Something like this could be used to model the evolution of a system over time.


PS: This means I'm not looking for a way to intercept the placement of new elements ..
Regards
Christian

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Intercept drawing of an element of connector
« Reply #4 on: March 16, 2011, 02:04:36 am »
In that case you have to ask Sparx to implement such a feature.

q.