Customization > Automation Interface > Functions > For System Simulations > Animation Functions > ResetDiagrams function (automation interface)
  
ResetDiagrams function (automation interface)
Syntax:
ResetDiagrams
Removes the color animation notation from any State Diagrams that are open in Modeler. This function returns a Boolean value to indicate success or failure.