Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.Floors.Utility package

Submodules

duHast.Revit.Floors.Utility.floors_filter module

This module contains a Revit floors utility functions.

duHast.Revit.Floors.Utility.floors_type_sorting module

This module contains a Revit floor utility functions.

duHast.Revit.Floors.Utility.floors_type_sorting.build_floor_type_dictionary(collector, dic)

Returns the dictionary past in with keys and or values added retrieved from collector past in. Keys are built in floor family type names. TODO: This code repeats across a number of modules. Use generic instead! :param collector: A filtered element collector containing floor types. :type collector: Autodesk.Revit.DB.FilteredElementCollector :param dic: A dictionary containing key: floor type family name, value: list of ids belonging to that type. :type dic: dictionary (key str, value list of Autodesk.Revit.DB.ElementId) :return: A dictionary containing key: built in floor type family name, value: list of ids belonging to that type. :rtype: dictionary (key str, value list of Autodesk.Revit.DB.ElementId)

duHast.Revit.Floors.Utility.floors_type_sorting.sort_floor_types_by_family_name(doc)

Returns a dictionary containing all floor types in the model. Key values are as per BUILTIN_FLOOR_TYPE_FAMILY_NAMES. TODO: This code repeats across a number of modules. Use generic instead! :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A dictionary containing key: floor type family name, value: list of ids. :rtype: dic { str: [Autodesk.Revit.DB.ElementId]}

Module contents