1 Reply Latest reply on Oct 14, 2009 6:40 PM by RJKSolutions

    Which event gets fired when a tag is added to a trend?

    JanvanderVen

      Dear all,

       

      I have a .Net ProcessBook add-in that needs to react to the addition (and removal) of tags in a trend. I cannot find the event on the Trend class. I expected DataRefresh or DataUpdate to get called, but this is not the case. What are my options?

       

      Kind regards,

       

      Jan

        • Re: Which event gets fired when a tag is added to a trend?

          Hi Jan,

           

          There is no TraceAdded event or similar for a Trend object but the DataRefresh does get triggered when a trace is added/removed - certainly for me it gets called twice each time.  The issue is other actions trigger the event too such as reverting or changing the timerange,  You could build some logic to filter out the "false" instances of the event for your purpose.

           

          Unless of course you are automating the adding/removal of traces..?

           

          Rhys.