Sample Code Revit Batch Processor 1.1.16 documentation
Moves files to the specified destination directory.
files (list[str]) – List of file paths to be moved.
destination_directory (str) – Directory where the files will be moved.
output (function) – Output function to log messages.
True if all files were moved successfully, False otherwise.
bool
Gets part atom files from the specified family file path.
file_path – list of Path to the family files.
List of part atom files.
Moves original families from the library path to the backup path.
family_copy_directive_directory (str) – Directory containing family copy directives.
backupPath (str) – Path to the backup directory where families will be moved.
output (function) – Output function to log messages.
Result object indicating success or failure of the operation.
Copies new families from the output path to the library path. :param output_path: Path where new families are located. :type output_path: str :param library_path: Path to the library where families will be copied. :type library_path: str :param output: Output function to log messages. :type output: function
Result object indicating success or failure of the operation.
Post-process function to handle the final steps after family processing.
This function copies new families to the library and moves original families to a backup directory.
output_path (str) – Path where new families are located.
library_path (str) – Path to the library where new families will be copied to.
backup_directory_path (str) – Path to the backup directory where original families will be moved.
Result object indicating the success or failure of the post-processing step.
Extracts family type data from XML files in the specified library path.
Result class instance.
result.status: XML conversion status will be returned in result.status. False if an exception occurred, otherwise True.
result.message will contain which xml file was read and converted into family type data.
result.result will be [FamilyTypeDataStorageManager
]
On exception
Reload.status (bool) will be False
Reload.message will contain the exception message
Reload.result will be an empty list
Pre-process function to prepare for the family type data extraction.
This function is a placeholder for any pre-processing steps that may be needed before extracting family type data from the library.
library_path (str) – Path to the library containing family files to be renamed.
output_path (str) – Path where the directives will be written and changed family files will be copied to.
task_list_directory_path (str) – Path where the task lists for RBP will be written.
code_descriptor_path (str) – Path to the code descriptor file. (AUSHFG)
output – Output object to write messages to.
Result object indicating the success or failure of the pre-processing step.