Sample Code Revit Batch Processor 1.1.11 documentation
Gets all used ramp element type ids available in 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 ramp 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 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
Gets all unused ramp type ids in the model. This method can be used to safely delete unused ramp types. In the case that no ramp instance using any of the types is placed, this will return all but one type id since Revit requires at least one ramp type definition to be in the model. Unused: Not one instance of this type is placed in the model. - Ramp It will therefore not return any in place family types. (No such thing in Revit?) :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 a filtered element collector of all Ramp types in the model.
doc (_type_) – _description_
A filtered element collector containing ramp types.
Autodesk.Revit.DB.FilteredElementCollector
Gets all ramp 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 ramp instances.
Autodesk.Revit.DB.FilteredElementCollector
Gets all ramp element type ids available in model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids of ramp types.
List Autodesk.Revit.DB.ElementId