Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.Railings.Utility package

Submodules

duHast.Revit.Railings.Utility.merge_lists module

This module contains a helper functions to merge two lists into a unique list.

There are build in python function(s) to do this…

duHast.Revit.Railings.Utility.merge_lists.merge_into_unique_list(list_source, list_merge)

Merges the second list into the first by adding elements from second list which are not already in first list. TODO: Consider more generic code! :param list_source: List to add unique values to. :type list_source: list var :param list_merge: List containing values. :type list_merge: list var :return: List of unique objects. :rtype: list var

duHast.Revit.Railings.Utility.railing_categories module

Revit railings built-in categories.

  • useful for filtering out families which can be used in MEP system types

duHast.Revit.Railings.Utility.railing_family_names module

Revit railing built in family names (ENG).

duHast.Revit.Railings.Utility.railing_family_names.RAILING_FAMILY_NAME = 'Railing'

Built in railing family name for railing

duHast.Revit.Railings.Utility.railing_family_names.TOP_RAIL_FAMILY_NAME = 'Top Rail Type'

Built in railing family name for top rail

duHast.Revit.Railings.Utility.railing_family_names.HAND_RAIL_FAMILY_NAME = 'Handrail Type'

Built in railing family name for hand rail

duHast.Revit.Railings.Utility.railing_family_names.BUILTIN_RAILING_TYPE_FAMILY_NAMES = ['Railing', 'Top Rail Type', 'Handrail Type']

List of all Built in railing family names

duHast.Revit.Railings.Utility.railings_filter module

This module contains a Revit railings utility functions.

duHast.Revit.Railings.Utility.railings_type_sorting module

This module contains a Revit railings utility functions.

duHast.Revit.Railings.Utility.railings_type_sorting.build_railing_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 railing type elements of family symbols :type collector: Autodesk.Revit.DB.FilteredElementCollector :param dic: dictionary containing key: railing 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.Railings.Utility.railings_type_sorting.sort_railing_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