Customization > Automation Interface > Functions > For System Simulations > Event Functions > GetEventLineNumber function (automation interface)
  
GetEventLineNumber function (automation interface)
Syntax:
GetEventLineNumber
Returns the state machine line number that generated the current event.
* 
Use the GetEventFileName function to determine the state machine file that generated the current event.