Sample Code Revit Batch Processor 1.1.11 documentation
Bases: Base
Class constructor.
form: The progress form to wrap
Base implementation to update the progress form.
count: The current count total: The total count message: The message to display
Base implementation to check if the form has been cancelled.
True if the form has been cancelled
Bases: TaskDialog
This will display a task dialog with the given content. If exitscript is True, the script will terminate after the dialog is closed. Additional content input will be put in an expander. This could be more technical output :param content: The main content of the dialog :type content: str :param exitscript: If True, the script will terminate after dialog close, defaults to True :type exitscript: bool, optional :param additional_content: Additional content to be put in an expander, defaults to None :type additional_content: str, optional
Bases: Base
Class constructor.
name (str) – The fully qualified file path.
size (int) – The file size.
bim360_project_guid (str, optional) – The BIM360 project GUID, defaults to None
bim360_file_guid (str, optional) – The BIM360 file GUID, defaults to None
bim360_revit_version (str, optional) – The revit file version (year only), defaults to ‘-’
Bases: Base
Class constructor
inputDirectory (str) – A fully qualified directory path containing files to be shown in UI.
include_sub_dirs_in_search (bool) – If True include subdirectories in file search, otherwise just root directory.
output_directory (str) – A fully qualified directory path to where task files will be written.
output_file_number (int) – The number of task files to be written out.
revitFileExtension (str) – A file extension filter applied to directory search.
Workload buckets are used to distribute file processing evenly between parallel running batch processor sessions based on Revit file size.
Bases: Base
Class constructor.
Initializes this class with:
.workload_value = 0
.items = []
Sets the buckets overall workload value.
value (int) – An integer representing the workload value of this bucket.
Adds an item to the workload list.
value (foo) – Adds an item to the workload list.