Sample Code Revit Batch Processor 1.1.14 documentation
FamilyReportData
FamilyReportData.project_name
FamilyReportData.family_category
FamilyReportData.family_name
FamilyReportData.family_type_name
FamilyReportData.family_instances_placed
FamilyReportData.nested_families
FamilyReportData.add_nested_family()
FamilyReportData.is_host
FamilyReportData.type_properties
FamilyReportData.add_type_property()
FamilyReportData.is_shared
FamilyReportData.get_properties_as_list_str()
FamilyReportData.get_property_headers()
families
Reports on loaded families:
family name
family type
family category
specific family type parameters and their values
family instances placed by by type in model
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
output (func(message)) – A function piping messages to designated target.
Result class instance.
result.status False if an exception occurred, otherwise True.
result.message will contain processing messages.
result.result family data array
On exception:
result.status (bool) will be False.
result.message will contain the exception message.
result.result will be an empty list
This mimicks an outer join between any number of reports.
The reports are compared based on the family name, type name, parameter name:,
family Name, Type name, parmater name, report 1, report 2, report 3, … family 1, type 1, parameter 1, value 1, N/A, value 1, … family 2, type 2, parameter 2, N/A, value 2, value 3, … family 3, type 3, parameter 3, value 3, N?A N/A …
N/A = not available in that report
Reports:
if family does not exist in library
if type does not exist in library
if a parameter value for a given type is different to the parameter value for that type in the library
Get the family type data from the families in the project file of families that are in the library only.
doc (Autodesk.Revit.DB.Document) – Revit document
type_data_from_library ([FamilyTypeDataStorageManager
]) – list of family type data from the library
progress_callback (ProgressBase
) – progress callback object
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
Build a comparison report of the family type data from the project file against the library. Only differences are reported.
type_data_matches ([([FamilyTypeDataStorageManager
], [FamilyTypeDataStorageManager
])]) – list of matched family type data
ignore_list_path (str) – path to a csv file containing a list of families to ignore (name, category) in the comparison report.
Result class instance.
result.status: Comparison status will be returned in result.status. False if an exception occurred, otherwise True.
result.message: will be empty.
result.result will be [[str]] where each entry is a list of family name, category etc and difference.
On exception
Reload.status (bool) will be False
Reload.message will contain the exception message
Reload.result will be an empty list
Compare the family type data from the project file against the library. Only differences are reported.
doc (Autodesk.Revit.DB.Document) – Revit document
process_directories (list) – list of directories to search for xml files
ignore_list_path (str) – path to a csv file containing a list of families to ignore (name, category) in the comparison report.
progress_callback (ProgressBase
) – progress callback object
Result class instance.
result.status: Comparison status will be returned in result.status. False if an exception occurred, otherwise True.
result.message: Log entries.
result.result will be [[str]] where each entry is a list of family name, category etc and difference.
On exception
Reload.status (bool) will be False
Reload.message will contain the exception message
Reload.result will be an empty list
Reports:
all family types in the library folder ( based on xml files located in the library folder)
Build a report of the family type data retrieved from the library.
type_data_storage_manager_instances ([FamilyTypeDataStorageManager
]) – list of matched family type data
Result class instance.
result.status: Comparison status will be returned in result.status. False if an exception occurred, otherwise True.
result.message: will be empty.
result.result will be [[str]] where each entry is a list of family name, category etc and difference.
On exception
Reload.status (bool) will be False
Reload.message will contain the exception message
Reload.result will be an empty list
Reads family xml atom files from library directories and saves them out to a combined csv report.
process_directories (list) – list of directories to search for xml files
progress_callback (ProgressBase
) – progress callback object
Result class instance.
result.status: Report status will be returned in result.status. False if an exception occurred, otherwise True.
result.message: Log entries.
result.result will be [[str]] where each entry is a list of family name, category etc and difference.
On exception
Reload.status (bool) will be False
Reload.message will contain the exception message
Reload.result will be an empty list
Reports:
all family types and their type parameters values in a project
Get all family type data from the project file.
doc (Autodesk.Revit.DB.Document) – The Revit document.
ignore_list_path (str) – The path to the ignore list file. ( 2 columns csv file with family name and category name)
progress_callback (function) – The progress callback function.
The family type data.