Sample Code Revit Batch Processor 1.1.11 documentation
Gets a filtered element collector of all BuildingPad types in the model.
Basic BuildingPad
Filters by category.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing building pad types.
Autodesk.Revit.DB.FilteredElementCollector
Gets a filtered element collector of all building pad types in the model:
Basic BuildingPad
Filters by class. Since there are no in place families of type building pad possible, this should return the same elements as the by category filter.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing building pad types.
Autodesk.Revit.DB.FilteredElementCollector
Gets all building pad elements placed in model.
Filters by category.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing ceiling instances.
Autodesk.Revit.DB.FilteredElementCollector
Gets all building pad elements placed in model.
Filters by class. Since there are no in place families of type building pad possible, this should return the same elements as the by category filter.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing ceiling instances.
Autodesk.Revit.DB.FilteredElementCollector
Gets all building pad element type ids available in model.
Filters by category.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing building pad type ids.
Autodesk.Revit.DB.FilteredElementCollector
Gets all building pad element type ids available in model.
Filters by class. Since there are no in place families of type building pad possible, this should return the same elements as the by category filter.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing building pad type ids.
Autodesk.Revit.DB.FilteredElementCollector
Built in family name for pad
List of all Built in pad family names
Gets all used building pad type ids. Filters by category. Used: at least one instance of this type is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing used building pad types. :rtype: list of Autodesk.Revit.DB.ElementId
Compares two lists of ids. True if any id is not in unUsedTypeIds. TODO: check for more generic list comparison and remove this function. :param fam_type_ids: List of family type ids to check. :type fam_type_ids: List of Autodesk.Revit.DB.ElementId :param un_used_type_ids: Reference list of ids. :type un_used_type_ids: List of Autodesk.Revit.DB.ElementId :return: True if any id from famTypeIds is not in unUsedTypeIds. :rtype: bool
Gets all unused building pad type id’s. - Basic BuildingPad This method can be used to safely delete unused building pad types: In the case that no building pad instance using any of the types is placed this will return all but one type id since Revit requires at least one building pad type definition to be in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing not used building pad types. :rtype: list of Autodesk.Revit.DB.ElementId