Sample Code Revit Batch Processor 1.1.11 documentation
This will delete all line patterns which are not used by any element in the family or nested families.
requires a revit line pattern processor object
This will delete all line patterns that are not used by any element in the family or nested families.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
processor (LinePatternProcessor
) – A LinePatternProcessor object containing all line pattern information of the family document and any nested families.
Result class instance. - result.status (bool): True if all unused line patterns were deleted successfully or none needed to be deleted. Otherwise, False. - result.message (str): Property updated in the format: “Found unused line pattern: line pattern Name [subcategory Id]”
result.status (bool) will be False.
result.message (str) will contain the exception message.