Customization > Automation Interface > Functions > For System Simulations > Event Functions > GetEventClassInstance function (automation interface)
  
GetEventClassInstance function (automation interface)
Syntax:
GetEventClassInstance
Returns as an integer the id of the Class instance that triggered the current Event.