Message 1 of 13
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Revit API Reference: https://www.revitapidocs.com/2021.1/87d62116-cdb4-efc4-e2e2-e4f5b41b3441.htm
We have about eight IUpdaters in our addin and have the need to specify the order in which they fire.
Has anyone had this need and if so, do you know if you can set the order of more than two?
I was thinking a "Two at a time" approach setting the order of one pair (as allowed using the SetExecutionOrder) IUpdaters then continuing this for the remaining in a list each time incrementing an index.
Below is a concrete example rather than a loop which would be used instead. Just thought it would be easier to visualize.
public static void SetExecutionOrder (Updater7.Id,Updater8.ID);
public static void SetExecutionOrder (Updater6.Id,Updater7.ID);
public static void SetExecutionOrder (Updater5.Id,Updater6.ID);
public static void SetExecutionOrder (Updater4.Id,Updater5.ID);
public static void SetExecutionOrder (Updater3.Id,Updater4.ID);
public static void SetExecutionOrder (Updater2.Id,Updater3.ID);
public static void SetExecutionOrder (Updater1.Id,Updater2.ID);
Solved! Go to Solution.