RVTDocs.com

UpdaterRegistry.GetIsUpdaterOptional

Method
Description:
Check if the 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.
Syntax
public static bool GetIsUpdaterOptional(
	UpdaterId id
)
Parameters
Parameter Type Description
id UpdaterId Id of the updater to check
Return Value
Type Description
Boolean Returns True if the updater is optional, False otherwise.
Exceptions
Exception Condition
ArgumentException Updater with this Id is not currently registered in Revit.
ArgumentNullException A non-optional argument was null