Sample Code Revit Batch Processor 1.1.11 documentation
Returns a list of Revit model lines that are associated with a specific area scheme.
doc (Revit Document): The Revit document object. scheme_name (str): The name of the area scheme.
list: A list of Revit elements representing the area lines associated with the specified area scheme.
Returns a list of area lines based on the area scheme and level name.
doc (Document): The current model document. scheme_name (str): The name of the area scheme. level_name (str): The name of the level.
list: A list of area lines based on the area scheme and level name or None if no area lines attached to scheme and level.
Sorts the area lines based on their associated level names and returns a dictionary where the keys are the level names and the values are lists of area lines.
doc (Document): The current model document. area_lines (list): A list of area lines.
dict: A dictionary where the keys are the level names and the values are lists of area lines.
Deletes area lines in a Revit model based on their associated level name.
doc (Document): The current model document. level_name (str): The name of the level to delete area lines from. area_lines (list): A list of area lines to be deleted. transaction_manager (function, optional): A function that manages the transaction. Defaults to in_transaction.
status (bool): True if the delete operation was successful, False otherwise.
message (str): A message indicating the status of the delete operation.
result (list): A list of remaining area lines after the delete operation.
Create new area separation lines in a specified view in Autodesk Revit.
doc (Revit Document): The Revit document in which the area separation lines will be created. curves (list): A list of curves representing the area separation lines. view (Revit View): The view in which the area separation lines will be created. transaction_manager (function, optional): A transaction manager function that wraps the creation of area separation lines in a Revit transaction. Default is in_transaction.
Result: A Result object that contains the status of the transaction and any error or success messages.
Copy area separation lines from one level to another in Autodesk Revit.
doc (Revit Document): The Revit document in which the area separation lines exist. view (Revit View): The view in which the area separation lines will be created. area_lines (list): A list of area separation lines to be copied. transaction_manager (function, optional): A transaction manager function that wraps the creation of area separation lines in a Revit transaction. Default is in_transaction.
Result: A Result object that contains the status of the transaction and any error or success messages.
Retrieves a list of areas that belong to a specific area scheme.
doc (Revit document): The Revit document from which to retrieve the areas. scheme_name (str): The name of the area scheme to filter the areas by.
list: A list of areas that belong to the specified area scheme.
Retrieves all area schemes in Autodesk Revit.
doc (Revit Document): The Revit document in which to search for area schemes.
area_schemes: A collection of area schemes in the Revit document.
Retrieves an area scheme by its name in Autodesk Revit.
doc (Revit Document): The Revit document in which to search for the area scheme. area_scheme_name (str): The name of the area scheme to retrieve.
AreaScheme: The area scheme with the specified name, or None if no match is found.
Retrieves all views associated with a given area scheme name in Autodesk Revit.
doc (Revit Document): The Revit document in which to search for views. area_scheme_name (str): The name of the area scheme to filter views by.
list: A list of ViewPlan objects that are associated with the given area scheme name.