Customization > Automation Interface > Functions > For System Simulations > Animation Functions > OpenDiagramsEnabled function (automation interface)
  
OpenDiagramsEnabled function (automation interface)
Syntax:
OpenDiagramsEnabled
Returns a Boolean value to indicate whether the Open Diagram Mode is enabled.