admin@creocustomization.com

Displaying Message in the Creo Parametric using VB API

Displaying Message in the Creo Parametric using VB API

Displaying message in the Creo Parametric is one of the vital element to interact with the user. Consider if the designer doing some activity in the model but your application should warn them or inform them to advise some operations. In such cases, we need to show the message to the user via the Creo parametric message display. This function help to do this action.

Sample Code

' Import Libraries
Public AConnection As IpfcAsyncConnection
Public BSession As IpfcBaseSession

Private Sub btn_DisplayMessage_Click(sender As Object, e As RoutedEventArgs) Handles btn_DisplayMessage.Click
    Try
        BSession = AConnection.Session
        BSession.UIShowMessageDialog("Message to show inside Creo", Nothing)
    Catch ex As Exception
        MessageBox.Show(ex.ToString, "Error Message")
    End Try
End Sub


Leave a Reply

Contact Us