Sample Code Revit Batch Processor 1.1.11 documentation
LOG_FILE_HEADER
PARAM_ACTIONS_FILENAME_DATE_LAST_UPDATED
PARAM_ACTIONS_FILENAME_NO_OF_WORKSETS
PARAM_ACTIONS_FILENAME_FILE_SIZE
PARAM_ACTIONS_FILENAME_NO_OF_WARNINGS
PARAM_ACTIONS_FILENAME_NO_OF_DESIGN_SETS
PARAM_ACTIONS_FILENAME_NO_OF_DESIGN_OPTIONS
PARAM_ACTIONS_FILENAME_NO_OF_SHEETS
PARAM_ACTIONS_FILENAME_NO_OF_VIEWS
PARAM_ACTIONS_FILENAME_NO_OF_VIEWS_NOT_PLACED
PARAM_ACTIONS_FILENAME_NO_OF_VIEW_FILTERS
PARAM_ACTIONS_FILENAME_NO_OF_VIEW_FILTERS_UNUSED
PARAM_ACTIONS_FILENAME_NO_OF_TEXT_STYLES
PARAM_ACTIONS_FILENAME_NO_OF_TEXT_STYLES_UNUSED
PARAM_ACTIONS_FILENAME_NO_OF_DIMENSION_STYLES
PARAM_ACTIONS_FILENAME_NO_OF_DIMENSION_STYLES_UNUSED
PARAM_ACTIONS_FILENAME_NO_OF_ARROW_HEAD_STYLES
PARAM_ACTIONS_FILENAME_NO_OF_ARROW_HEAD_STYLES_UNUSED
PARAM_ACTIONS_FILENAME_NO_OF_VIEW_TEMPLATES
PARAM_ACTIONS_FILENAME_NO_OF_VIEW_TEMPLATES_UNUSED
PARAM_ACTIONS_FILENAME_NO_OF_LINE_STYLES
PARAM_ACTIONS_FILENAME_NO_OF_LINE_PATTERNS
PARAM_ACTIONS_FILENAME_NO_OF_FILL_PATTERNS
PARAM_ACTIONS_FILENAME_NO_OF_CAD_IMPORTS
PARAM_ACTIONS_FILENAME_NO_OF_CAD_LINKS_MODEL
PARAM_ACTIONS_FILENAME_NO_OF_CAD_LINKS_VIEW
PARAM_ACTIONS_FILENAME_NO_OF_IMAGE_IMPORTS
PARAM_ACTIONS_FILENAME_NO_OF_IMAGE_LINKS
PARAM_ACTIONS_FILENAME_NO_OF_FAMILIES
PARAM_ACTIONS_FILENAME_NO_OF_FAMILIES_IN_PLACE
PARAM_ACTIONS_FILENAME_NO_OF_MODEL_GROUPS
PARAM_ACTIONS_FILENAME_NO_OF_MODEL_GROUPS_UNPLACED
PARAM_ACTIONS_FILENAME_NO_OF_DETAIL_GROUPS
PARAM_ACTIONS_FILENAME_NO_OF_DETAIL_GROUPS_UNPLACED
PARAM_ACTIONS_FILENAME_NO_OF_ROOMS
PARAM_ACTIONS_FILENAME_NO_OF_ROOMS_UNPLACED
PARAM_ACTIONS_FILENAME_NO_OF_ROOMS_UNENCLOSED
PARAM_ACTIONS_FILENAME_NO_OF_ROOMS_REDUNDANT
PARAM_ACTIONS_FILENAME_NO_OF_FILLED_REGIONS
PARAM_ACTIONS_FILENAMES
Model 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.