Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.Stairs.Utility package

Submodules

duHast.Revit.Stairs.Utility.stairs_filter module

This module contains a number of base element filter functions relating to Revit stairs.

duHast.Revit.Stairs.Utility.stairs_type_sorting module

This module contains a number of helper functions relating to sorting Revit stairs by types.

duHast.Revit.Stairs.Utility.stairs_type_sorting.build_stair_type_dictionary(collector, dic)

Amends dictionary past in with keys and or values added retrieved from collector past in.

Key values are as per BUILTIN_STAIR_TYPE_FAMILY_NAMES.

Parameters:
  • collector (Autodesk.Revit.DB.FilteredElementCollector) – A filtered element collector containing Stair type elements.

  • dic (dic { str: [Autodesk.Revit.DB.ElementId]}) – A dictionary containing key: stair type family name, value: list of ids.

Returns:

A dictionary containing key: stair type family name, value: list of ids.

Return type:

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

duHast.Revit.Stairs.Utility.stairs_type_sorting.sort_stair_types_by_family_name(doc)

Returns a dictionary containing all stair types in the model.

Key values are as per BUILTIN_STAIR_TYPE_FAMILY_NAMES.

Parameters:

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

Returns:

A dictionary containing key: stair type family name, value: list of ids.

Return type:

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

Module contents