Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: meierch on March 13, 2011, 03:50:47 am

Title: Intercept drawing of an element of connector
Post by: meierch 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
Title: Re: Intercept drawing of an element of connector
Post by: Geert Bellekens on March 14, 2011, 07:52:05 pm
I don't think so.

Geert
Title: Re: Intercept drawing of an element of connector
Post by: qwerty 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.
Title: Re: Intercept drawing of an element of connector
Post by: meierch 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 ..
Title: Re: Intercept drawing of an element of connector
Post by: qwerty on March 16, 2011, 02:04:36 am
In that case you have to ask Sparx to implement such a feature.

q.