Solid Edge Framework Type Library
DisplayAlerts Property
Description
Enables or disables the display of alerts and messages.
Property type
Read-write property
Syntax
Visual Basic
Public Property DisplayAlerts As Boolean
Remarks
If this property is True, the application displays alerts and messages (often requiring user interaction).
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFramework.Application
    Dim objDoc As SolidEdgePart.PartDocument
    Dim bDispAlt As Boolean
    ' Report errors
    Const PI = 3.14159265358979
    ' Create/get the application with specific settings
    On Error Resume Next
    Set objApp = GetObject(, "SolidEdge.Application")
    If Err Then
        Err.Clear
        Set objApp = CreateObject("SolidEdge.Application")
        Set objDoc = objApp.Documents.Add("SolidEdge.PartDocument")
        objApp.Visible = True
    Else
        Set objDoc = objApp.ActiveDocument
    End If
    ' Get the Display Alerts property
    bDispAlt = objApp.DisplayAlerts
    ' Reset the boolean value
    objApp.DisplayAlerts = Not bDispAlt
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
End Sub
See Also

Application Object  | Application Members