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
List of loadable built in family categories for cable tray related elements.
List of loadable built in family categories for conduit related elements.
List of loadable built in family categories for pipe related elements.
List of routing reference rule group types
Built in family name for oval ducting
Built in family name for round ducting
Built in family name for rectangular ducting
List of all Built in ducting family names
Built in family name for rectangular flex ducting
Built in family name for round flex ducting
List of all Built in flex ducting family names
Built in family name for conduits with fittings
Built in family name for conduits without fittings
List of all Built in conduit family names
Built in family name for cable tray with fittings
Built in family name for cable tray without fittings
List of all Built in cable tray family names
Built in family name for pipes
List of all Built in pipe family names
TODO: similar function exists in Walls module. Consider more generic function.
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.
collector (Autodesk.Revit.DB.FilteredElementCollector) – A filtered element collector containing railing type elements of family symbols
dic (Dictionary {str:[Autodesk.Revit.DB.ElementId]}) – dictionary containing key: railing type family name, value: list of ids
A dictionary where key is the family name and values are ids of types belonging to that family.
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 :param type_getter: function returning element types :type type_getter: func(doc) -> Autodesk.Revit.DB.FilteredElementCollector :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]}
Gets list of unique symbol ids used in a single system type property. List can be empty if an exception during processing occurred. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :param system_type_id: MEP system type id (pipe, conduit, duct, cable tray) :type system_type_id: Autodesk.Revit.DB.ElementId :return: List of unique ids representing family symbols used in a system. :rtype: list Autodesk.Revit.DB.ElementId
Gets a list of unique symbol ids used in these MEP system type properties: - Cross - Elbow - MultiShapeTransition - Tap - Tee - Transition - Union :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :param system_type_ids: List of MEP system type id belonging to pipe, conduit, duct or cable tray. :type system_type_ids: List Autodesk.Revit.DB.ElementId :return: List of unique ids representing family symbols used in mep systems. :rtype: list Autodesk.Revit.DB.ElementId
Gets list of symbol ids belonging to provided categories loaded in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :param category_list: List of built in categories to filter symbols by. :type category_list: list Autodesk.Revit.DB.BuiltInCategory :param system_type_name: Used in exception message to identify the mep system :type system_type_name: str :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId