Sample Code Revit Batch Processor 1.1.11 documentation
There are build in python function(s) to do this…
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
useful for filtering out families which can be used in MEP system types
Built in railing family name for railing
Built in railing family name for top rail
Built in railing family name for hand rail
List of all Built in railing family names
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]}
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]}