Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.BuildingPads.Utility package

Submodules

duHast.Revit.BuildingPads.Utility.RevitBuildingPadTypeSorting module

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

duHast.Revit.BuildingPads.Utility.RevitBuildingPadTypeSorting.build_building_pad_type_dictionary(collector, dic)

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

duHast.Revit.BuildingPads.Utility.RevitBuildingPadTypeSorting.sort_building_pad_types_by_family_name(doc)

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

duHast.Revit.BuildingPads.Utility.RevitBuildingPadsFilter module

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

Module contents