Sample Code Revit Batch Processor 1.1.11 documentation
header used in reports
Built in family name for empty system panel
Built in family name for empty system panel
Built in family name for V-shaped mullion
Built in family name for circular mullion
Built in family name for quad corner mullion
Built in family name for L-shaped corner mullion
Built in family name for rectangular mullion
Built in family name for trapezoid corner mullion
category filter for all element filters by category
Gets a filtered element collector of all curtain wall element types in the model:
Filters by multiple categories.
curtain wall panels
curtain wall mullions
in place family symbols!
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing curtain wall element types.
Autodesk.Revit.DB.FilteredElementCollector
Returns the dictionary past in with keys and or values added retrieved from collector past in.
Keys are built in curtain wall element type names. TODO: this code repeats across a number of modules. Use generic instead!
collector (Autodesk.Revit.DB.FilteredElementCollector) – A filtered element collector containing curtain wall element types.
dic (dictionary (key str, value list of Autodesk.Revit.DB.ElementId)) – A dictionary containing key: curtain wall element type name, value: list of ids belonging to that type.
A dictionary containing key: built in curtain wall element type name, value: list of ids belonging to that type.
dictionary (key str, value list of Autodesk.Revit.DB.ElementId)
Returns a dictionary containing all curtain wall element types in the model.
Key values are as per BUILTIN_TYPE_FAMILY_NAMES. TODO: This code repeats across a number of modules. Use generic instead!
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A dictionary containing key: curtain wall element type family name, value: list of ids.
dic { str: [Autodesk.Revit.DB.ElementId]}
Gets all CurtainWallElement elements instances placed in model.
Includes:
curtain wall panels
curtain wall mullions
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing curtain wall element types.
Autodesk.Revit.DB.FilteredElementCollector
Gets all Curtain Wall Element element type ids available in model.
Includes:
curtain wall panels
curtain wall mullions
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing curtain wall element types.
list of Autodesk.Revit.DB.ElementId
Gets all Curtain Wall Element element type available in model. Excludes in place family symbols.
Includes:
curtain wall panels
curtain wall mullions
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of curtain wall element types.
list of Autodesk.Revit.DB.ElementType
Gets all Curtain Wall Element element type ids available in model. Excludes in place family symbols.
Includes:
curtain wall panels
curtain wall mullions
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing curtain wall element types.
list of Autodesk.Revit.DB.ElementId
Gets a list of all loadable, non shared, family symbols (types) in the model of categories:
curtain wall panels
curtain wall mullions
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing curtain wall family symbols.
list of Autodesk.Revit.DB.ElementId
Returns a list of panel instances that are hosted in a curtain wall, excluding any family instances.
doc (Document) – The current Revit model document.
curtain_wall_instance (FamilyInstance) – The curtain wall instance for which to retrieve the panel instances.
A list of panel instances hosted in the curtain wall.
list[Panel]
Built in wall family name for curtain wall
Gets type ids off all available curtain wall types in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing curtain wall types. :rtype: list of Autodesk.Revit.DB.ElementId
Gets all curtain wall elements placed in model…ignores legend elements. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :param available_ids: Filter: curtain wall type ids to check wall instances for. :type available_ids: list of Autodesk.Revit.DB.ElementId :return: List of wall instances :rtype: List of Autodesk.Revit.DB.Wall
Gets all used curtain wall types in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :param available_ids: Filter: curtain wall type ids to check wall types for. :type available_ids: list of Autodesk.Revit.DB.ElementId :return: List of wall instances :rtype: List of Autodesk.Revit.DB.Wall
Gets all used Curtain Wall Element element type ids available in model. Used: at least one instance of this type is placed in the model. Includes: - curtain wall panels - curtain wall mullions :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing curtain wall element 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 fam_type_ids is not in un_used_type_ids. :rtype: bool
Gets all unused Curtain Wall Element element type ids which can be safely deleted from the model. This method can be used to safely delete unused in curtain wall element types. There is no requirement by Revit to have at least one curtain wall element definition in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing unused in curtain wall element types. :rtype: list of Autodesk.Revit.DB.ElementId
Gets a list of all used loadable, non shared, family symbols (types) in the model of categories: - curtain wall panels - curtain wall mullions Used: at least one family instance of this symbol (type) is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing curtain wall family symbols. :rtype: list of Autodesk.Revit.DB.ElementId
Gets a list of all used loadable, non shared, family symbols (types) in the model of categories: - curtain wall panels - curtain wall mullions Unused: Not one family instance of this symbol (type) is placed in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing curtain wall family symbols. :rtype: list of Autodesk.Revit.DB.ElementId
Gets symbol(type) ids and family ids (when no type is in use) of curtain wall element families which can be safely deleted from the model. This method can be used to safely delete unused curtain wall element types. There is no requirement by Revit to have at least one in place wall definition in the model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: List of element ids representing unused curtain wall element symbols (types) and families. :rtype: list of Autodesk.Revit.DB.ElementId
Returns all used stack wall type ids. Used: at least one instance of this type is placed in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing used stacked wall types.
list of Autodesk.Revit.DB.ElementId
Gets all used in place type ids in the model. Used: at least one instance of this type is placed in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing used in place wall types.
list of Autodesk.Revit.DB.ElementId
Gets type ids off all used curtain wall types. Used: at least one instance of this type is placed in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing used in curtain wall types.
list of Autodesk.Revit.DB.ElementId
Gets type ids off all used basic wall types. Used: at least one instance of this type is placed in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing all basic wall types in use.
list of Autodesk.Revit.DB.ElementId
Gets type ids off all unused basic wall types in model. This method can be used to safely delete unused basic wall types. In the case that no basic wall instance using any of the types is placed, this will return all but one type id since Revit requires at least one basic wall type definition to be in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing all basic wall types not in use.
list of Autodesk.Revit.DB.ElementId
Gets type ids off all unused curtain wall types. This method can be used to safely delete unused curtain wall types. In the case that no curtain wall instance using any of the types is placed, this will return all but one type id since Revit requires at least one curtain wall type definition to be in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing unused in curtain wall types.
list of Autodesk.Revit.DB.ElementId
Gets all unused in place type ids in the model. Unused: Not one instance of this type is placed in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing unused in place wall types.
list of Autodesk.Revit.DB.ElementId
Gets symbol(type) ids and family ids (when no type is in use) of in place wall families which can be safely deleted from the model. This method can be used to safely delete unused in place wall types. There is no requirement by Revit to have at least one in place wall definition in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing unused in place wall types and families.
list of Autodesk.Revit.DB.ElementId
Gets all unused stacked wall type id’s. This method can be used to safely delete unused wall types: In the case that no wall instance using any of the types is placed this will return all but one type id since Revit requires at least one wall type definition to be in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing not used stacked wall types.
list of Autodesk.Revit.DB.ElementId
Built in wall family name for stacked wall
Gets all stacked wall elements placed in model…ignores legend elements. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector containing wall instances. :rtype: Autodesk.Revit.DB.FilteredElementCollector
Gets all stacked wall element types used by instances placed in model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector containing stacked wall types. :rtype: Autodesk.Revit.DB.FilteredElementCollector
Gets all stacked wall element types available in model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing stacked wall types.
list of Autodesk.Revit.DB.ElementId
Get a flat list of walls from a list of room boundary segments. :param rvt_doc: Revit document :type rvt_doc: Autodesk.Revit.DB.Document :param bnd_seg_list: List of room boundary segments :type bnd_seg_list: list :return: List of wall elements :rtype: list
Built in wall family name for basic wall
List of all Built in wall family names
Gets all wall types in a model. :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector containing wall types. :rtype: Autodesk.Revit.DB.FilteredElementCollector
This will return a filtered element collector of all wall types by class in the model
It will therefore not return any in place wall types since revit treats those as families… :param doc: Current Revit model document. :type doc: Autodesk.Revit.DB.Document :return: A filtered element collector containing wall types. :rtype: Autodesk.Revit.DB.FilteredElementCollector
Returns all instances in place families of category wall in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A filtered element collector containing in place wall instances.
Autodesk.Revit.DB.FilteredElementCollector
Gets all type ids off all available in place families of category wall.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing in place wall types.
list of Autodesk.Revit.DB.ElementId
Gets type ids off all available basic wall types in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
List of element ids representing all basic wall types.
list of Autodesk.Revit.DB.ElementId
Gets all basic wall elements placed in model…ignores legend elements.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
available_ids (list of Autodesk.Revit.DB.ElementId) – Filter: curtain wall type ids to check wall instances for.
List of element ids representing all basic wall instances.
list of Autodesk.Revit.DB.ElementId
Gets all basic wall types used in model.
Used: at least one instance of this type is placed in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
available_ids (list of Autodesk.Revit.DB.ElementId) – Filter: basic wall type ids to check wall instances for.
List of element ids representing all basic wall types in use.
list of Autodesk.Revit.DB.ElementId
Gets the location line reference type name of a wall instance.
# 0- Wall Centerline; # 1- Core Centerline; # 2- Finish Face: Exterior; # 3- Finish Face: Interior; # 4- Core Face: Exterior and # 5- Core Face: Interior.
wall_instance (Autodesk.Revit.DB.Element) – Wall instance to get the location line reference type name for.
Name of the reference type.
str
Sets the location line reference type name of a wall instance.
Possible values are:
Wall Centerline
Core Centerline
Finish Face: Exterior
Finish Face: Interior
Core Face: Exterior
Core Face: Interior
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
wall_instance (Autodesk.Revit.DB.Element) – Wall instance to change the location line reference type name for.
reference_type_name (str) – Name of the reference type to set.
Result object with success status and message.