Customization > Automation Interface > Functions > For System Simulations > Animation Functions > DisableOpenDiagrams function (automation interface)
  
DisableOpenDiagrams function (automation interface)
Syntax:
DisableOpenDiagrams
Disables Open Diagram Mode in Modeler. When disabled the active State Diagram keeps the focus.