Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.Ramps.Utility package

Submodules

duHast.Revit.Ramps.Utility.RevitRampsFamilyNames module

Revit ramps built in family names (ENG).

duHast.Revit.Ramps.Utility.RevitRampsFamilyNames.BASIC_RAMP_FAMILY_NAME = 'Ramp'

Built in ramp family name for ramp

duHast.Revit.Ramps.Utility.RevitRampsFamilyNames.BUILTIN_RAMP_TYPE_FAMILY_NAMES = ['Ramp']

List of all built in ramp family names

duHast.Revit.Ramps.Utility.RevitRampsFilter module

This module contains a Revit ramps utility functions.

duHast.Revit.Ramps.Utility.RevitRampsTypeSorting module

This module contains a Revit ramps utility functions.

duHast.Revit.Ramps.Utility.RevitRampsTypeSorting.build_ramp_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 ramp type elements of family symbols representing in place families :type collector: Autodesk.Revit.DB.FilteredElementCollector :param dic: dictionary containing key: ramp 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.Ramps.Utility.RevitRampsTypeSorting.sort_ramp_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