1
Automation Interface, Add-Ins and Tools / Problems with Model Add-In Event EA_OnTabChanged parameters
« on: October 31, 2025, 07:35:01 pm »
Hi 
I'm working with Sparx Model Add-Ins to provide some automation and "GUI extension" to the Sparx EA client.
I assume with Model Add-Ins the already existing Add-In concept is replicated so that I could use the existing reference e.g. for event handling
to execute certain actions after the user switched between diagrams I use the event EA_OnTabChanged which is defined here:https://sparxsystems.com/enterprise_architect_user_guide/17.1/add-ins___scripting/ea_ontabchanged.html
The event provides 3 parameters:
With other events like EA_MenuClick this works fine (e.g. for the String ItemName)
I'm working with Sparx EA V16.1.1628
The example model doesn't cover EA_OnTabChanged, so I hope that I can find some help how to solve this here
Happy Halloween,
Oliver

I'm working with Sparx Model Add-Ins to provide some automation and "GUI extension" to the Sparx EA client.
I assume with Model Add-Ins the already existing Add-In concept is replicated so that I could use the existing reference e.g. for event handling
to execute certain actions after the user switched between diagrams I use the event EA_OnTabChanged which is defined here:https://sparxsystems.com/enterprise_architect_user_guide/17.1/add-ins___scripting/ea_ontabchanged.html
The event provides 3 parameters:
Code: [Select]
Repository (EA.Repository), TabName (String) and DiagramID (Long) - but this doesn't seem to be the case. When I try to output TabName or DiagramID with Session.Output or Repository.WriteOutput TabName and DiagramID are shown as [object Object]With other events like EA_MenuClick this works fine (e.g. for the String ItemName)
I'm working with Sparx EA V16.1.1628
The example model doesn't cover EA_OnTabChanged, so I hope that I can find some help how to solve this here

Happy Halloween,
Oliver
)