hi
the requirement :
- 2 states on a statechart diagram.
- when the user connects, disconnects or re-routes a connection between these to diagramobjects, the diagramobject changes color.
Solution (mine) :
- on a 'connect' action do a :
Repository.SaveDiagram
Repository.ReloadDiagram
For newly created connections and a delete of a connector this works.
When re-routing a connector (to a third state object) the system crashes.
this happens under EA 9.3 and EA 10.0
(Windows reports that they searching for a solutions but I don't really have a lot of faith in that

)
a few more details for those who would want to investigate this

For a new connection : the saveload is done in the EA_OnPostNew Connector
For a delete of a connection there is a trick to it :
The saveload is done in the EA_OnNotifyContextItemChanged on the diagram, which follows the delete action
For a re-route :
- saveload in the EA_OnNotifyContextItemModified : Crash
- the same trick as for delete doesn't work, because there is no EA_OnNotifyContextItemModified on the diagram following the re- routing
Anybody any ideas ?
Many thanks in advance.