Sample Code Revit Batch Processor 1.1.16 documentation
This will delete all shared parameter definitions which are not used by any family parameter.
requires a revit shared parameter processor object
This will delete all shared parameter definitions which are not used by any family parameter in the family or nested families.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
processor (SharedParameterProcessor
) – An RevitSharedParameterDataProcessor object containing all shared parameter information of the family document and any nested families.
Result class instance.
True if all unused shared parameters where deleted successfully or none needed to be deleted. Otherwise False.
Result.message property updated in format: Found unused shared parameter: shared parameter Name [GUID]
On exception:
status (bool) will be False.
message will contain the exception message.