Revit 2026 API
Updater |
Adds trigger with the specified element filter and ChangeType for the specified document
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static void AddTrigger( UpdaterId id, Document document, ElementFilter filter, ChangeType change )
Public Shared Sub AddTrigger ( id As UpdaterId, document As Document, filter As ElementFilter, change As ChangeType )
public: static void AddTrigger( UpdaterId^ id, Document^ document, ElementFilter^ filter, ChangeType^ change )
static member AddTrigger : id : UpdaterId * document : Document * filter : ElementFilter * change : ChangeType -> unit
Parameters
- id UpdaterId
- Id of updater that trigger should be added to
- document Document
- Document that elements in 'elements' are contained in
- filter ElementFilter
- Element filter that defines elements that affect this trigger
- change ChangeType
- ChangeType associated with this trigger

Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | The updater's owner's AddIn does not match the currently active AddIn. -or- The id does not correspond to any registered Updaters -or- AddTrigger called while executing an updater. |

This method only works with CategoryFilter and ParameterFilter.
See Also