Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.MEP_Systems package

Subpackages

Submodules

duHast.Revit.MEP_Systems.cable_trays module

This module contains a number of helper functions relating to Revit cable trays.

duHast.Revit.MEP_Systems.cable_trays.get_all_cable_tray_types_by_category(doc)

Gets a filtered element collector of all cable tray types in the model. - with fittings - without fittings :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of cable tray types :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.cable_trays.get_cable_tray_types_by_class(doc)

Gets a filtered element collector of all cable tray types in the model. - with fittings - without fittings Will exclude in place families. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of cable tray types :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.cable_trays.get_all_cable_tray_instances_by_category(doc)

Gets all cable tray elements placed in model. TODO: check these actually work… :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of cable tray instances :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.cable_trays.get_all_cable_tray_instances_by_class(doc)

Gets all cable tray elements placed in model. Will exclude in place families. TODO: check these actually work… :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of cable tray instances :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.cable_trays.get_all_cable_tray_type_ids_in_model_by_category(doc)

Gets all cable tray type ids available in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing cable tray types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.cable_trays.get_all_cable_tray_type_ids_in_model_by_class(doc)

Gets all cable tray type ids available in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing cable tray types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.cable_trays.get_symbol_ids_used_in_cable_tray_types(doc)

Gets a list of unique symbol ids used in system type properties of cable tray types. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of unique ids representing family symbols used in cable tray systems. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.cable_trays.get_symbol_ids_for_cable_tray_types_in_model(doc)

Gets list of symbol ids of the following categories: - BuiltInCategory.OST_CableTrayFitting :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.conduits module

This module contains a number of helper functions relating to Revit conduits.

duHast.Revit.MEP_Systems.conduits.get_all_conduit_types_by_category(doc)

Gets a filtered element collector of all conduit types in the model. - with fittings - without fittings :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of conduit types :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.conduits.get_all_conduit_types_by_class(doc)

Gets a filtered element collector of all conduit types in the model. - with fittings - without fittings Will exclude in place families. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of conduit types :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.conduits.get_all_conduit_instances_by_category(doc)

Gets all conduit elements placed in model. TODO: check these actually work… :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of conduit instances :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.conduits.get_all_conduit_instances_by_class(doc)

Gets all conduit elements placed in model. Will exclude in place families. TODO: check these actually work… :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of conduit instances :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.conduits.get_all_conduit_type_ids_in_model_by_category(doc)

Gets all conduit type ids available in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing conduit types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.conduits.get_all_conduit_type_ids_in_model_by_class(doc)

Gets all conduit type ids available in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing conduit types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.conduits.get_symbol_ids_used_in_conduit_types(doc)

Gets a list of unique symbol ids used in system type properties of conduit types. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of unique ids representing family symbols used in conduit systems. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.conduits.get_symbol_ids_for_conduit_types_in_model(doc)

Gets list of symbol ids of the following categories: - BuiltInCategory.OST_ConduitFitting :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.ducts module

This module contains a number of helper functions relating to Revit ducts.

duHast.Revit.MEP_Systems.ducts.get_all_duct_types_by_category(doc)

Gets a filtered element collector of all duct types in the model. - round - oval - rectangular :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of duct types :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.ducts.get_all_duct_types_by_class(doc)

Gets a filtered element collector of all duct types in the model. - round - oval - rectangular Will exclude in place families. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of duct types :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.ducts.get_all_duct_instances_in_model_by_category(doc)

Gets all duct elements placed in model. TODO: check these actually work… :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of duct instances :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.ducts.get_all_duct_instances_in_model_by_class(doc)

Gets all duct elements placed in model. Will exclude in place families. TODO: check these actually work… :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of duct instances :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.ducts.get_all_duct_type_ids_in_model_by_category(doc)

Gets all duct type ids available in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing duct types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.ducts.get_all_duct_type_ids_in_model_by_class(doc)

Gets all duct type ids available in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing duct types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.ducts.get_symbol_ids_used_in_duct_types(doc)

Gets a list of unique symbol ids used in system type properties of duct types. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of unique ids representing family symbols used in duct systems. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.ducts.get_symbol_ids_for_duct_types_in_model(doc)

Gets list of symbol ids of the following categories: - BuiltInCategory.OST_DuctAccessory, - BuiltInCategory.OST_DuctTerminal, - BuiltInCategory.OST_DuctFitting :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.flex_ducts module

This module contains a number of helper functions relating to Revit flex ducts.

duHast.Revit.MEP_Systems.flex_ducts.get_all_flex_duct_types_by_category(doc)

Gets a filtered element collector of all flex duct types in the model. - round - rectangular :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of flex duct types :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.flex_ducts.get_all_flex_duct_types_by_class(doc)

Gets a filtered element collector of all flex duct types in the model. - round - rectangular Will exclude in place families. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of flex duct types :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.flex_ducts.get_all_flex_duct_instances_in_model_by_category(doc)

Gets all flex duct elements placed in model. TODO: check these actually work… :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of flex duct instances :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.flex_ducts.get_all_flex_duct_instances_in_model_by_class(doc)

Gets all flex duct elements placed in model. Will exclude in place families. TODO: check these actually work… :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of flex duct instances :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.flex_ducts.get_all_flex_duct_type_ids_in_model_by_category(doc)

Gets all flex duct type ids available in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing flex duct types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.flex_ducts.get_all_flex_duct_type_ids_in_model_by_class(doc)

Gets all flex duct type ids available in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing flex duct types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.flex_ducts.get_symbol_ids_used_in_flex_duct_types(doc)

Gets a list of unique symbol ids used in system type properties of flex duct types. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of unique ids representing family symbols used in flex duct systems. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.flex_ducts.get_symbol_ids_for_flex_duct_types_in_model(doc)

Gets list of symbol ids of the following categories: - BuiltInCategory.OST_DuctAccessory, - BuiltInCategory.OST_DuctTerminal, - BuiltInCategory.OST_DuctFitting TODO: flex duct and duct do not differentiate in terms of filtering…one function will get both :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.pipes module

This module contains a number of helper functions relating to Revit pipes.

duHast.Revit.MEP_Systems.pipes.get_all_pipe_types_by_category(doc)

Gets a filtered element collector of all pipe types in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of pipe tray types :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.pipes.get_all_pipe_types_by_class(doc)

Gets a filtered element collector of all pipe types in the model. Will exclude in place families. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of pipe tray types :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.pipes.get_all_pipe_instances_by_category(doc)

Gets all pipe elements placed in model. TODO: check these actually work… :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of pipe instances :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.pipes.get_all_pipe_instances_by_class(doc)

Gets all pipe elements placed in model. Will exclude in place families. TODO: check these actually work… :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector of pipe instances :rtype: Autodesk.Revit.DB.FilteredElementCollector

duHast.Revit.MEP_Systems.pipes.get_all_pipe_type_ids_in_model_by_category(doc)

Gets all pipe type ids available in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing pipe types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.pipes.get_all_pipe_type_ids_in_model_by_class(doc)

Gets all pipe type ids available in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing pipe types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.pipes.get_symbol_ids_used_in_pipe_types(doc)

Gets a list of unique symbol ids used in system type properties of pipe types. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of unique ids representing family symbols used in pipe systems. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.pipes.get_symbol_ids_for_pipe_types_in_model(doc)

Gets list of symbol ids of the following categories: - BuiltInCategory.OST_PipeAccessory, - BuiltInCategory.OST_PipeFitting :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_symbols module

This module contains a number of helper functions relating to purging unused families which can be used in mep systems.

duHast.Revit.MEP_Systems.purge_unused_mep_symbols.get_used_duct_and_flex_duct_symbol_ids(doc)

Gets all used duct and flex duct symbol ids of categories - BuiltInCategory.OST_DuctAccessory, - BuiltInCategory.OST_DuctTerminal, - BuiltInCategory.OST_DuctFitting Used: at least instance per symbol is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_symbols.get_unused_duct_and_flex_duct_symbol_ids(doc)

Gets all unused duct and flex duct symbol ids of categories - BuiltInCategory.OST_DuctAccessory, - BuiltInCategory.OST_DuctTerminal, - BuiltInCategory.OST_DuctFitting Unused: not one instance per symbol is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_symbols.get_unused_duct_and_flex_duct_symbol_ids_for_purge(doc)

Gets all unused duct and flex duct symbol ids of categories - BuiltInCategory.OST_DuctAccessory, - BuiltInCategory.OST_DuctTerminal, - BuiltInCategory.OST_DuctFitting Unused: not one instance per symbol is placed in the model. This method can be used to safely delete unused duct symbols and families from the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_symbols.get_used_cable_tray_symbol_ids(doc)

Gets all used cable tray symbol ids of categories - BuiltInCategory.OST_CableTrayFitting Used: at least instance per symbol is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_symbols.get_unused_cable_tray_symbol_ids(doc)

Gets all unused cable tray symbol ids of categories - BuiltInCategory.OST_CableTrayFitting Unused: not one instance per symbol is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_symbols.get_unused_cable_tray_symbol_ids_for_purge(doc)

Gets all unused cable tray symbol ids of categories - BuiltInCategory.OST_CableTrayFitting Unused: not one instance per symbol is placed in the model. This method can be used to safely delete unused cable tray symbols and families from the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_symbols.get_used_conduit_symbol_ids(doc)

Gets all used conduit symbol ids of categories - BuiltInCategory.OST_ConduitFitting Used: at least instance per symbol is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_symbols.get_unused_conduit_symbol_ids(doc)

Gets all unused conduit symbol ids of categories - BuiltInCategory.OST_ConduitFitting Unused: not one instance per symbol is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_symbols.get_unused_conduit_symbol_ids_for_purge(doc)

Gets all unused conduit symbol ids of categories - BuiltInCategory.OST_ConduitFitting Unused: not one instance per symbol is placed in the model. This method can be used to safely delete unused conduit symbols and families from the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_symbols.get_used_pipe_symbol_ids(doc)

Gets all used pipe symbol ids of categories - BuiltInCategory.OST_PipeAccessory, - BuiltInCategory.OST_PipeFitting Used: at least instance per symbol is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_symbols.get_unused_pipe_symbol_ids(doc)

Gets all unused pipe symbol ids of categories - BuiltInCategory.OST_PipeAccessory, - BuiltInCategory.OST_PipeFitting Unused: not one instance per symbol is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_symbols.get_unused_pipe_symbol_ids_for_purge(doc)

Gets all unused pipe symbol ids of categories - BuiltInCategory.OST_PipeAccessory, - BuiltInCategory.OST_PipeFitting Unused: not one instance per symbol is placed in the model. This method can be used to safely delete unused pipe symbols and families from the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of ids representing family symbols. :rtype: list Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types module

This module contains a number of helper functions relating to purging unused mep system types.

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_used_duct_type_ids(doc)

Gets all used duct type ids available in model. Unused: at least instance of each of these types is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing duct types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_used_flex_duct_type_ids(doc)

Gets all used flex duct type ids available in model. Unused: at least instance of each of these types is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing flex duct types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_used_conduit_type_ids(doc)

Gets all used conduit type ids available in model. Unused: at least instance of each of these types is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing conduit types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_used_cable_tray_type_ids(doc)

Gets all used cable tray type ids available in model. Unused: at least instance of each of these types is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing cable tray types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_used_pipe_type_ids(doc)

Gets all used pipe type ids available in model. Unused: at least instance of each of these types is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing pipe types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_unused_duct_type_ids(doc)

Gets all unused duct type ids available in model. Unused: not one instance of these types is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing duct types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_unused_flex_duct_type_ids(doc)

Gets all unused flex duct type ids available in model. Unused: not one instance of these types is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing flex duct types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_unused_conduit_type_ids(doc)

Gets all unused conduit type ids available in model. Unused: not one instance of these types is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing conduit types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_unused_cable_tray_type_ids(doc)

Gets all unused cable tray type ids available in model. Unused: not one instance of these types is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing cable tray types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_unused_pipe_type_ids(doc)

Gets all unused pipe type ids available in model. Unused: not one instance of these types is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing pipe types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types.family_no_types_in_use(fam_type_ids, un_used_type_ids)

Compares two lists of element ids and returns False if any element id in first list is not in the second list. Returns False if any symbols (types) of a family (first list) are in use in a model (second list). TODO: repetitive code…Consider generic function! :param fam_type_ids: List of family symbols (types). :type fam_type_ids: List of Autodesk.Revit.DB.ElementId :param un_used_type_ids: List of unused family symbols (types) :type un_used_type_ids: List of Autodesk.Revit.DB.ElementId :return: True if all ids in first list are also in second list, otherwise False. :rtype: bool

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_unused_mep_system_type_ids_to_purge(doc, all_type_id_getter, all_types_getter, built_in_family_type_names)

Gets the ids of unused MEP system types. In the case that no mep system instance using any of the types is placed, this will return all but one type id since Revit requires at least one mep system type definition to be in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :param all_type_id_getter: Function getting all available system type ids as a list. :type all_type_id_getter: func(doc) -> List Autodesk.Revit.ED.ElementId :param all_types_getter: Function getting all available system types as a collector. :type all_types_getter: func(doc) -> Autodesk.Revit.DB.FilteredElementCollector :param built_in_family_type_names: List containing all available major type names. :type built_in_family_type_names: List str :return: A list of ids representing mep system types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_unused_duct_type_ids_to_purge(doc)

Gets all unused duct type ids. This method can be used to safely delete unused duct types: In the case that no duct instance using any of the types is placed, this will return all but one type id since Revit requires at least one duct type definition to be in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing duct types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_unused_flex_duct_type_ids_to_purge(doc)

Gets all unused flex duct type ids. This method can be used to safely delete unused flex duct types: In the case that no flex duct instance using any of the types is placed, this will return all but one type id since Revit requires at least one flex duct type definition to be in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing flex duct types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_unused_conduit_type_ids_to_purge(doc)

Gets all unused conduit type ids. This method can be used to safely delete unused conduit types: In the case that no conduit instance using any of the types is placed, this will return all but one type id since Revit requires at least one conduit type definition to be in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing conduit types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_unused_cable_tray_type_ids_to_purge(doc)

Gets all unused cable tray type ids. This method can be used to safely delete unused cable tray types: In the case that no cable tray instance using any of the types is placed, this will return all but one type id since Revit requires at least one cable tray type definition to be in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing conduit types. :rtype: List Autodesk.Revit.DB.ElementId

duHast.Revit.MEP_Systems.purge_unused_mep_types.get_unused_pipe_type_ids_to_purge(doc)

Gets all unused pipe type ids. This method can be used to safely delete unused pipe types: In the case that no pipe instance using any of the types is placed, this will return all but one type id since Revit requires at least one pipe type definition to be in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A list of ids representing conduit types. :rtype: List Autodesk.Revit.DB.ElementId

Module contents