2 Replies Latest reply on Feb 24, 2017 1:51 PM by Stafin Duncan

    Force an auto updater to run?

    Stafin Duncan

      Is it possible to force an auto updater to run without it's trigger?

       

      For example, in a case where a field is updated or an object is created based on a spatial update of the feature (such as moving the feature to or near a related feature), is it possible to ask the auto updater to fire without moving the feature or 'doing' the trigger?

       

      Stafin

        • Re: Force an auto updater to run?
          Samuel Tregillus

          Hi Stafin,

           

          Without custom code, it is not possible to trigger an AU without updating the feature in some way.  Generally you could use an unneeded field and just modify it, which will trigger the AU to run.

           

          With custom code, you can create an instance of a specific autoupdater and trigger its Execute method, passing in the object that you want it to run on.  For example, if I had a custom AU called "TestSpecialAU", I could do something like

           

          var au = new TestSpecialAU();
          au.Execute(myObject);
          

           

          Where myObject is my particular feature as an IObject.

           

          Keep in mind that this method is only executing the SPECIFIC AU that you specify in your code.  In the above case, only my TestSpecialAU is firing.  It does not execute all AUs assigned to that object. 

           

          Let me know if you have any questions!

           

          -Sam