2 Replies Latest reply on Jan 15, 2010 3:05 PM by andreas

    IMessageSendNames

    Bannikov

      Hello!

       

      I've just tried to use IMessageSendNames interface, but have received error that this interface isn't supported. I;ve use PI Server 3.4.375.99 and PI SDK 1.3.6.364. Maybe someone can say, which version of Server/SDK actually support this interface. Thank you.

        • Re: IMessageSendNames
          andreas

          Hi Sergey,

           

          I need to check since when we are supporting that, but given that I found an example in VB6 I guess it is quite a while. Anyhow, I have written a small VB.NET example based on the VB6 code from the manual. Could you check if that runs on your side?

          Dim _PISDK As PISDK.PISDK = New PISDK.PISDK
          Dim _Server As PISDK.Server

          _Server = Me.ServPickList1.SelectedServer
          _Server.Open()

          Dim _msg2 As PISDK.MessageLog2
          _msg2 = _PISDK.MessageLog

          Dim _nvsTemplateParams AsNew PISDKCommon.NamedValues

          _nvsTemplateParams.Sorted = False
          _nvsTemplateParams.Add("1", "Test of local message without a template but with extra message parameters")
          Dim _nvsMessageParams AsNew PISDKCommon.NamedValues
          Dim _msgsndnms As PISDK.IMessageSendNames
          _msgsndnms = _msg2
          _nvsMessageParams.Add(_msgsndnms.Category, "My category")
          _nvsMessageParams.Add(_msgsndnms.SeverityOverride, PISDK.MsgSeverityConstants.mscInformation)
          _msg2.SendLogMessage(0, _nvsTemplateParams, _nvsMessageParams)

          Is it possible for you to provide your code snippet?

           

          Regards,

          • Re: IMessageSendNames
            andreas

             

             

            After checking I must say that IMessageSendNames has been implemented in PI SDK 1.3.6 - but given the version of your PI server and the PI SDK I would expect it works.