Sample Code Revit Batch Processor 1.1.11 documentation
list of built in parameters for stair cut mark
Gets a filtered element collector of all cut mark types in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector containing stair cut mark types. :rtype: Autodesk.Revit.DB.FilteredElementCollector
Get all Stair cut mark element type ids available in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing stair cut mark types. :rtype: list of Autodesk.Revit.DB.ElementId
list of built in parameters attached to stair sub types
Gets a filtered element collector of all Stair landing types in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector containing stair landing types. :rtype: Autodesk.Revit.DB.FilteredElementCollector
Gets all Stair landing element type ids available in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing stair landing types. :rtype: list of Autodesk.Revit.DB.ElementId
Gets a filtered element collector of all Stair path types in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector containing stair path types. :rtype: Autodesk.Revit.DB.FilteredElementCollector
Gets all Stair path element type ids available in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing stair path types. :rtype: list of Autodesk.Revit.DB.ElementId
Gets a filtered element collector of all Stair path elements in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector containing stair path elements. :rtype: Autodesk.Revit.DB.FilteredElementCollector
Built in stair family name for basic stairs
Built in stair family name for assembled stairs
Built in stair family name for precast stairs
Built in stair family name for cast in place stairs
List of all Built in stair family names
Gets all used in Stair type ids. 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 stair types. :rtype: list of Autodesk.Revit.DB.ElementId
Compares two lists of ids. True if any id is not in un_used_type_ids. 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 amTypeIds is not in un_used_type_ids. :rtype: bool
Gets all unused Stair type ids for. Included are: - Stair Soffit - Compound Stair - Basic Stair 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 representing unused stair types. :rtype: list of Autodesk.Revit.DB.ElementId
Gets the id of types making up a stair. These could be stair landing types, stringer and carriage types etc. Types returned depend on parameter definitions past in. Refer to: - STAIR_LANDING_TYPE_PARAS, - STAIR_CUTMARK_TYPE_PARAS, - STAIR_SUPPORT_TYPE_PARAS
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
stair_type_id (Autodesk.Revit.DB.ElementId) – An element id representing a stair type.
paras (list Autodesk.Revit.DB.BuiltInParameterDefinition) – Parameters containing a type making up a stair.
List of element ids representing stair types.
list of Autodesk.Revit.DB.ElementId
Gets all unique ids of similar types of element ids passed in. TODO: check for similar function elsewhere! :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :param ids: list of type ids to be added to. :type ids: list of Autodesk.Revit.ElementIds :return: List of unique ids of similar types. :rtype: list of Autodesk.Revit.ElementIds
Returns dictionary where key is the system family name and values list of available type ids of that system family. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :param ids: List of system family ids. :type ids: list of Autodesk.Revit.ElementIds :return: Dictionary of unique ids of similar types. :rtype: dictionary {str: list of Autodesk.Revit.ElementIds }
Check whether a list of ids of system family is the entire list of types available in the model. If so it will remove one type id per system family to allow safe purging. Revit requires at least one type definition per system family to be in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :param ids: List of ids to check :type ids: list of Autodesk.Revit.ElementIds :param leave_one_behind: True: at least one type will be omitted from list. :type leave_one_behind: bool :return: List of unique ids of similar types. :rtype: list of Autodesk.Revit.ElementIds
Returns a list of type ids which are not used in any stair types. Type ids are provided via an id getter function :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :param available_ids_getter: function returning available type ids :type available_ids_getter: func(doc) :param paras: list of built in parameters attached to a stair type for given sub types (stringers, path, run, landing) :type paras: list of Autodesk.Revit.DB.BuiltInParameter :param leave_one_behind: _description_, defaults to True :type leave_one_behind: bool, optional :return: List of element ids :rtype: list of Autodesk.Revit.ElementIds
Gets all unused Stair path ids to purge, will omit on path type id per system family if none are used. This method can be used to safely delete unused stair path types. In the case that no stair path instance using any of the types is placed, this will return all but one type id since Revit requires at least one stair path type definition to be in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids :rtype: list of Autodesk.Revit.ElementIds
Gets all unused Stair landing type ids. This method can be used to safely delete unused stair landing types. In the case that no stair landing instance using any of the types is placed, this will return all but one type id since Revit requires at least one stair landing type definition to be in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids :rtype: list of Autodesk.Revit.ElementIds
Gets all unused Stair run type ids. This method can be used to safely delete unused stair run types. In the case that no stair run instance using any of the types is placed, this will return all but one type id since Revit requires at least one stair run type definition to be in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids :rtype: list of Autodesk.Revit.ElementIds
Gets all unused Stair cut mark type ids. This method can be used to safely delete unused stair cut mark types. In the case that no stair cut mark instance using any of the types is placed, this will return all but one type id since Revit requires at least one stair cut mark type definition to be in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids :rtype: list of Autodesk.Revit.ElementIds
Gets all unused Stair stringer / carriage type ids. This method can be used to safely delete unused stair stringer / carriage types. In the case that no stair string carriage instance using any of the types is placed, this will return all but one type id since Revit requires at least one stringer carriage type definition to be in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids :rtype: list of Autodesk.Revit.ElementIds
Gets all used in place stair type ids. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids :rtype: list of Autodesk.Revit.ElementIds
Gets all unused in place stair type ids. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids :rtype: list of Autodesk.Revit.ElementIds
Gets symbol (type) ids and family ids (when no type is in use) of in place Stair families which can be purged. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids :rtype: list of Autodesk.Revit.ElementIds
list of built in parameters for stair run type
Gets a filtered element collector of all Stair run types in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector containing stair run types. :rtype: Autodesk.Revit.DB.FilteredElementCollector
Gets all Stair run element type ids available in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing stair run types. :rtype: list of Autodesk.Revit.DB.ElementId
Gets a filtered element collector of all Stair types in the model.
Return includes: - Stair - Assembled Stair - Precast Stair - Cast-In-Place Stair - In place families or loaded families
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing stair types.
Autodesk.Revit.DB.FilteredElementCollector
Gets a filtered element collector of all Stair types in the model.
Return includes:
Assembled Stair
Precast Stair
Cast-In-Place Stair
It will not return any in place family or Stair types! These are internally treated as Families or Family Symbols class objects.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing stair types.
Autodesk.Revit.DB.FilteredElementCollector
Gets a filtered element collector of all Stair elements placed in model.
TODO: Confirm it ignores in place families?
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing stair instances.
Autodesk.Revit.DB.FilteredElementCollector
Gets a filtered element collection all Stair elements placed in model…
TODO: Confirm it ignores Stair soffits.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing stair instances.
Autodesk.Revit.DB.FilteredElementCollector
Gets all Stair element type ids available in model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing stair types.
list of Autodesk.Revit.DB.ElementId
Gets all Stair element type ids available in model.
Ignores in place families of category stair.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing stair types.
list of Autodesk.Revit.DB.ElementId
Gets all instances in place families of category stair.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing in place stair family instances.
Autodesk.Revit.DB.FilteredElementCollector
Gets all type ids off all available in place families of category stair.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids
list of Autodesk.Revit.ElementIds
list of built in parameters for stair support types
Gets a filtered element collector of all stair stringers and carriage types in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector containing stair stringers and carriage types. :rtype: Autodesk.Revit.DB.FilteredElementCollector
Get all Stair stringers and carriage element type ids available in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing stair stringer and carriage types. :rtype: list of Autodesk.Revit.DB.ElementId