Sample Code Revit Batch Processor 1.1.11 documentation
Gets all used in Roof 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 of roof types. :rtype: List Autodesk.Revit.DB.ElementId
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 lists) are in use in a model (second list). TODO: repetitive code…Consider generic function! :param famTypeIds: List of family symbols (types). :type famTypeIds: List of Autodesk.Revit.DB.ElementId :param unUsedTypeIds: List of unused family symbols (types) :type unUsedTypeIds: List of Autodesk.Revit.DB.ElementId :return: True if all ids in first list are also in second list, otherwise False. :rtype: bool
Gets all unused Roof type ids in the model. This method can be used to safely delete unused roof types. In the case that no roof instance using any of the types is placed, this will return all but one type id since Revit requires at least one roof type definition to be in the model. Unused: Not one instance of this type is placed in the model. - Roof Soffit - Compound Roof - Basic Roof It will therefore not return any in place family types. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids of roof types. :rtype: List Autodesk.Revit.DB.ElementId
Gets all used in place roof 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 of in place roof types. :rtype: List Autodesk.Revit.DB.ElementId
Gets all unused in place roof 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 of in place roof types. :rtype: List Autodesk.Revit.DB.ElementId
Gets symbol(type) ids and family ids (when no type is in use of a family) of in place Roof families which can be purged. This method can be used to safely delete unused in place roof types. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids of in place roof types. :rtype: List Autodesk.Revit.DB.ElementId
Gets a filtered element collector of all roof types in the model.
Basic Roof
In place families or loaded families
sloped glazing
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing roof types.
Autodesk.Revit.DB.FilteredElementCollector
Gets a filtered element collector of all Roof types in the model:
Basic Roof
sloped glazing
Since this is based of class roof it will therefore not return any in place family types!
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing roof types.
Autodesk.Revit.DB.FilteredElementCollector
Gets all Roof elements placed in model…ignores in place families (to be confirmed!)
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing roof instances.
Autodesk.Revit.DB.FilteredElementCollector
Gets all Roof elements placed in model…ignores roof soffits(???)
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing roof instances.
Autodesk.Revit.DB.FilteredElementCollector
Gets all Roof element type ids available in model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids of roof types.
List Autodesk.Revit.DB.ElementId
Gets all Roof element type ids available in model.
doc (_type_) – _description_
List of element ids of roof types.
List Autodesk.Revit.DB.ElementId
Gets all instances of in place families of category roof in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing roof family instances.
Autodesk.Revit.DB.FilteredElementCollector
Gets type ids off all available in place families of category roof in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids of in place roof types.
List Autodesk.Revit.DB.ElementId