Sample Code Revit Batch Processor 1.1.16 documentation
LOG_FILE_HEADERPARAM_ACTIONS_FILENAME_DATE_LAST_UPDATEDPARAM_ACTIONS_FILENAME_NO_OF_WORKSETSPARAM_ACTIONS_FILENAME_FILE_SIZEPARAM_ACTIONS_FILENAME_NO_OF_WARNINGSPARAM_ACTIONS_FILENAME_NO_OF_DESIGN_SETSPARAM_ACTIONS_FILENAME_NO_OF_DESIGN_OPTIONSPARAM_ACTIONS_FILENAME_NO_OF_SHEETSPARAM_ACTIONS_FILENAME_NO_OF_VIEWSPARAM_ACTIONS_FILENAME_NO_OF_VIEWS_NOT_PLACEDPARAM_ACTIONS_FILENAME_NO_OF_VIEW_FILTERSPARAM_ACTIONS_FILENAME_NO_OF_VIEW_FILTERS_UNUSEDPARAM_ACTIONS_FILENAME_NO_OF_TEXT_STYLESPARAM_ACTIONS_FILENAME_NO_OF_TEXT_STYLES_UNUSEDPARAM_ACTIONS_FILENAME_NO_OF_DIMENSION_STYLESPARAM_ACTIONS_FILENAME_NO_OF_DIMENSION_STYLES_UNUSEDPARAM_ACTIONS_FILENAME_NO_OF_ARROW_HEAD_STYLESPARAM_ACTIONS_FILENAME_NO_OF_ARROW_HEAD_STYLES_UNUSEDPARAM_ACTIONS_FILENAME_NO_OF_VIEW_TEMPLATESPARAM_ACTIONS_FILENAME_NO_OF_VIEW_TEMPLATES_UNUSEDPARAM_ACTIONS_FILENAME_NO_OF_LINE_STYLESPARAM_ACTIONS_FILENAME_NO_OF_LINE_PATTERNSPARAM_ACTIONS_FILENAME_NO_OF_FILL_PATTERNSPARAM_ACTIONS_FILENAME_NO_OF_CAD_IMPORTSPARAM_ACTIONS_FILENAME_NO_OF_CAD_LINKS_MODELPARAM_ACTIONS_FILENAME_NO_OF_CAD_LINKS_VIEWPARAM_ACTIONS_FILENAME_NO_OF_IMAGE_IMPORTSPARAM_ACTIONS_FILENAME_NO_OF_IMAGE_LINKSPARAM_ACTIONS_FILENAME_NO_OF_FAMILIESPARAM_ACTIONS_FILENAME_NO_OF_FAMILIES_IN_PLACEPARAM_ACTIONS_FILENAME_NO_OF_MODEL_GROUPSPARAM_ACTIONS_FILENAME_NO_OF_MODEL_GROUPS_UNPLACEDPARAM_ACTIONS_FILENAME_NO_OF_DETAIL_GROUPSPARAM_ACTIONS_FILENAME_NO_OF_DETAIL_GROUPS_UNPLACEDPARAM_ACTIONS_FILENAME_NO_OF_ROOMSPARAM_ACTIONS_FILENAME_NO_OF_ROOMS_UNPLACEDPARAM_ACTIONS_FILENAME_NO_OF_ROOMS_UNENCLOSEDPARAM_ACTIONS_FILENAME_NO_OF_ROOMS_REDUNDANTPARAM_ACTIONS_FILENAME_NO_OF_FILLED_REGIONSPARAM_ACTIONS_FILENAMESModel health report metrics can either be displayed in a family where each parameter is assigned to a metric and or data can be exported to text files which can be used to visualize key metrics over time.
Gets all instances of the model health tracker family in a model.
Built in parameter containing family name when filtering familyInstance elements: BuiltInParameter.ELEM_FAMILY_PARAM This is a faster filter in terms of performance then LINQ query refer to: https://jeremytammik.github.io/tbc/a/1382_filter_shortcuts.html
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
A list containing all model health tracker families in the model.
list of Autodesk.Revit.DB.FamilyInstance
Updates parameter values of model tracker family instance.
fam_instance (Autodesk.Revit.DB.FamilyInstance) – An instance of the model health tracker family.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Result class instance.
.status True if all parameters where found on the family and got updated successfully or no update at all was required. Otherwise False.
.message will be ‘Failed to get value for’
alias of healthDataAction
List of actions reporting model health metrics and their associated parameter name
Updates instances of model health tracker family in project.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
revit_file_path (str) – Fully qualified revit model file path.
Result class instance.
.status True if all model key health metric where updated successfully. Otherwise False.
.message will be listing each parameter update: old value to new value
Write out health tracker data to file.
Each value gets written to a separate file. The file name is made up of time stamp and the revit file name.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
revit_file_path (str) – Fully qualified revit model file path.
output_directory (str) – The directory path of where to write the data to.
Result class instance.
.status True if data was written to files successfully. Otherwise False.
.message will be contain data file path for each file.