Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.Roofs.Utility package

Submodules

duHast.Revit.Roofs.Utility.RevitRoofsFamilyNames module

Revit roofs built in family names (ENG).

duHast.Revit.Roofs.Utility.RevitRoofsFamilyNames.BASIC_ROOF_FAMILY_NAME = 'Basic Roof'

Built in roof family name for basic roof

duHast.Revit.Roofs.Utility.RevitRoofsFamilyNames.SLOPED_GLAZING_FAMILY_NAME = 'Sloped Glazing'

Built in roof family name for sloped glazing

duHast.Revit.Roofs.Utility.RevitRoofsFamilyNames.BUILTIN_ROOF_TYPE_FAMILY_NAMES = ['Basic Roof', 'Sloped Glazing']

List of all Built in roof family names

duHast.Revit.Roofs.Utility.RevitRoofsFilter module

This module contains a Revit roofs utility functions.

duHast.Revit.Roofs.Utility.RevitRoofsTypeSorting module

This module contains a Revit roofs utility functions.

duHast.Revit.Roofs.Utility.RevitRoofsTypeSorting.build_roof_type_dictionary(collector, dic)

Returns the dictionary past in with keys and or values added retrieved from collector past in. TODO: similar function exists in Walls module. Consider more generic function. :param collector: A filtered element collector containing roof type elements of family symbols :type collector: Autodesk.Revit.DB.FilteredElementCollector :param dic: dictionary containing key: roof type family name, value: list of ids :type dic: Dictionary {str:[Autodesk.Revit.DB.ElementId]} :return: A dictionary where key is the family name and values are ids of types belonging to that family. :rtype: Dictionary {str:[Autodesk.Revit.DB.ElementId]}

duHast.Revit.Roofs.Utility.RevitRoofsTypeSorting.sort_roof_types_by_family_name(doc)

Returns a dictionary where key is the family name and values are ids of types belonging to that family. TODO: similar function exists in Walls module. Consider more generic function. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A dictionary where key is the family name and values are ids of types belonging to that family. :rtype: Dictionary {str:[Autodesk.Revit.DB.ElementId]}

Module contents