Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.DetailItems.Utility package

Submodules

duHast.Revit.DetailItems.Utility.detail_items_type_sorting module

This module contains a Revit detail items utility functions.

duHast.Revit.DetailItems.Utility.detail_items_type_sorting.build_detail_type_ids_dictionary(collector)

Returns the dictionary keys is autodesk.revit.db element type as string and values are available type ids.

Parameters:

collector (Autodesk.Revit.DB.FilteredElementCollector) – A filtered element collector containing detail component types.

Returns:

Dictionary where key is the element type as string and value is a list of all type ids belonging to the element type.

Return type:

dic{str:list[Autodesk.Revit.DB.ElementId]}

duHast.Revit.DetailItems.Utility.detail_items_type_sorting.build_dependent_elements_dictionary(doc, collector)

Returns the dictionary keys is autodesk.revit.db element type as string and values are elements of that type.

Parameters:
  • doc (Autodesk.Revit.DB.Document) – Current Revit model document.

  • collector (Autodesk.Revit.DB.FilteredElementCollector) – A filtered element collector containing elements.

Returns:

Dictionary where key is the element type as string and value is a list of all elements belonging to the element type.

Return type:

dic{str:list[Autodesk.Revit.DB.Element]}

Module contents