Enables or disables OLE Server Busy/Not Responding dialog boxes from appearing during a lengthy OLE, or COM, operations. In detail, this function does the following:
Enables or disables the "Server Busy" dialog box, which is displayed when the message-pending delay expires during an OLE call.
Enables or disables the "Not Responding" dialog box, which is displayed if a keyboard or mouse message is pending during an OLE call and the call has timed out.
rhinoscriptsyntax.DisplayOleAlerts (enable)
rhinoscript.application.DisplayOleAlerts (enable)
enable |
Required. Boolean. Enable or disable the display of OLE alert dialog boxes. |
None |
If successful or on error. |
import System
import rhinoscriptsyntax as rs
rs.DisplayOleAlerts( False )
t = System.Type.GetTypeFromProgID("Excel.Application")
objExcel = System.Activator.CreateObject(t)
...
Reinitializing RhinoScript