Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.Walls.Utility package

Submodules

duHast.Revit.Walls.Utility.walls_filter module

This module contains a Revit walls utility functions.

duHast.Revit.Walls.Utility.walls_type_sorting module

This module contains a Revit walls utility functions.

duHast.Revit.Walls.Utility.walls_type_sorting.build_wall_type_dictionary(collector, dic)

Returns the dictionary past in with keys and or values added retrieved from collector past in. Keys are built in wall family type names. :param collector: A filtered element collector containing wall types. :type collector: Autodesk.Revit.DB.FilteredElementCollector :param dic: A dictionary containing key: wall 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 wall type family name, value: list of ids belonging to that type. :rtype: dictionary (key str, value list of Autodesk.Revit.DB.ElementId)

duHast.Revit.Walls.Utility.walls_type_sorting.sort_wall_types_by_family_name(doc)

Returns a dictionary of all wall types in the model where key is the build in wall family name, values are ids of associated wall types. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A dictionary containing key: built in wall type family name, value: list of ids belonging to that type. :rtype: dictionary (key str, value list of Autodesk.Revit.DB.ElementId)

Module contents