Sets a flag indicating whether an updater is optional or not.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2011
Syntax
| C# |
|---|
|
| Visual Basic |
|---|
|
| Visual C++ |
|---|
|
Parameters
- id
- Type: Autodesk.Revit.DBUpdaterId
Id of the updater
- isOptional
- Type: SystemBoolean
Use True to make the updater optional, false to make it a mandatory updater.
Remarks
This flag controls whether an updater is going to be required next time a document in which it had been used is opened. If a non-optional updater is not found (currently not registered) in a document, the end user will be presented with a warning and choices to resolve the situation.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.ExceptionsArgumentException | Updater with this Id is not currently registered in Revit. |
| Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |