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