UpdaterRegistry.SetIsUpdaterOptional
Description:
Sets a flag indicating whether an updater is optional or not.
Sets a flag indicating whether an updater is optional or not.
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.
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.
public static void SetIsUpdaterOptional(
UpdaterId id,
bool isOptional
)
-
idId of the updater
-
BooleanisOptionalUse True to make the updater optional, false to make it a mandatory updater.
-
Updater with this Id is not currently registered in Revit.
-
A non-optional argument was null