Question

I would like to give a lifeline the name of the class or actor its belongs to as well as it ihas been created.

This can avoid confusion when elements are deleted by other users or by mistake.

On the PreNewDiagramObject and PreNewElement events I would like to check if the element is a lifline, and in case it is- to name it.

Is it possible using EA API? or may there are some manual settings that perform it?

Was it helpful?

Solution

I would use EA_OnPostNewElement. The EA_OnPre~ events are generally only used if you want to prevent creation whereas the EA_OnPost~ events are used to modify something after it has been created.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top