AnsweredAssumed Answered

PI SDK Tag Search/Modifications

Question asked by jwright on Nov 27, 2017
Latest reply on Nov 27, 2017 by pmartin

I have a userform that I would like to select a Unit from the combobox and have it do a PI Tag Search. Then I would like it to display the information on an excel spreadsheet for modifications. Once the modifications have been done, I would then like to publish the tag modifications. Is this possible?


Here is the code snippet that I am currently using to be able to search for the tags. I would like to have this done programmatically so that the combobox is a functioning part.

Private Sub CommandButton1_Click()

    Dim search As New PISDKDlg.TagSearch
    Dim selectedPoints As PointList

    Set selectedPoints = search.Show

    Dim point As PIPoint
    Dim p As Variant
    For Each p In selectedPoints
        Set point = p
        Debug.Print point.Name

End Sub