Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.LinePattern.Data package

Subpackages

Submodules

duHast.Revit.LinePattern.Data.line_pattern_data_purge_unused module

Family line pattern purge unused utilities.

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

duHast.Revit.LinePattern.Data.line_pattern_data_purge_unused.purge_unused(doc, processor)

This will delete all line patterns that are not used by any element in the family or nested families.

Parameters:
  • 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.

Returns:

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]”

On exception:
  • result.status (bool) will be False.

  • result.message (str) will contain the exception message.

Return type:

Result

Module contents