Desired behaviour:
Once a user makes a change in the model, my EA add-in is supposed to flag the model as 'dirty'. This allows to conditionally export to another format on closing the file as in if dirty then do export
.
A change could be any kind of modification of the appearance or logical structure of the model.
So far, I'm setting a boolean value dirty
to true
in the EA_OnNotifyContextItemModified
event and it seems to work on some simple testing. However, I find the documentation on that event slightly unclear. What is a 'context item' exactly? Is it simply any model element that is selected in the EA GUI?
Are there any better options to notice user changes?