Sample Code Revit Batch Processor 1.1.11 documentation
Gets a filtered element collector of all ceiling types in the model:
Compound Ceiling
In place families or loaded families
Basic Ceiling
Filters by category. It will therefore not return any roof soffit types ..
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing ceiling types.
Autodesk.Revit.DB.FilteredElementCollector
Gets a filtered element collector of all ceiling types in the model:
Roof Soffit
Compound Ceiling
Basic Ceiling
Filters by class. It will therefore not return any in place family types.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing ceiling types.
Autodesk.Revit.DB.FilteredElementCollector
Gets all ceiling elements placed in model. Ignores roof soffits.
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 ceiling elements placed in model. Ignores in place families.
Filters by class.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing ceiling instances.
Autodesk.Revit.DB.FilteredElementCollector
Gets all ceiling element type ids available in model.
Filters by category.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing ceiling type ids.
Autodesk.Revit.DB.FilteredElementCollector
Gets all ceiling element type ids available in model.
Filters by class.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing ceiling type ids.
Autodesk.Revit.DB.FilteredElementCollector
Gets all instances of in place families of category ceiling.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing in place ceiling instances.
Autodesk.Revit.DB.FilteredElementCollector
Gets all type ids off all available in place families of category ceiling.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing in place ceiling types.
list of Autodesk.Revit.DB.ElementId
Built in family name for compound ceilings
Built in family name for basic ceilings
Built in family name for roof soffits
List of all Built in ceiling family names
Gets all used ceiling 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 ceiling 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.
fam_type_ids (List of Autodesk.Revit.DB.ElementId) – List of family type ids to check.
un_used_type_ids (List of Autodesk.Revit.DB.ElementId) – Reference list of ids.
True if any id from famTypeIds is not in unUsedTypeIds.
bool
Gets all unused ceiling type id’s. - Roof Soffit - Compound Ceiling - Basic Ceiling This method can be used to safely delete unused ceiling types: In the case that no ceiling instance using any of the types is placed this will return all but one type id since Revit requires at least one ceiling 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 ceiling types. :rtype: list of Autodesk.Revit.DB.ElementId
Gets all used in place ceiling type ids in the model. 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 in place ceiling types. :rtype: list of Autodesk.Revit.DB.ElementId
Gets all unused in place ceiling type ids in the model. Unused: Not 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 unused in place ceiling types. :rtype: list of Autodesk.Revit.DB.ElementId
Gets symbol(type) ids and family ids (when no type is in use) of in place ceiling families which can be safely deleted from the model. This method can be used to safely delete unused in place ceiling types. There is no requirement by Revit to have at least one in place ceiling definition in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing unused in place ceiling types and families. :rtype: list of Autodesk.Revit.DB.ElementId