Sample Code Revit Batch Processor 1.1.11 documentation
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 the number of text types in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of text types in model. On exception it will return -1
int
Gets the number of unused text types in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of unused text types in model. On exception it will return -1
int
Gets the number of dimension types in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of dimension types in model. On exception it will return -1
int
Gets the number of unused dimension types in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of unused dimension types in model. On exception it will return -1
int
Gets the number of arrow head types in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of arrow head types in model. On exception it will return -1
int
Gets the number of unused arrow head types in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of unused arrow head types in model. On exception it will return -1
int
Constant values used by Model health reports.
Default value if unable to retrieve a health metric value from model
A revit family displaying the health metrics retrieved by this code.
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 the number of design sets in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of design sets in model. On exception it will return -1
int
Gets the number of design options in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of design option in model. On exception it will return -1
int
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 the number of filled region instances in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of filled region instances in the model. On exception it will return -1
int
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 the number of families loaded into the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of families loaded into model. On exception it will return -1
int
Gets the number of in-place families the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of in-place in the model. On exception it will return -1
int
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.
Get the current date
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
The current date in format YYYY_MM_DD.
str
Gets the number of worksets in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
The number of worksets in a model.
int
Gets the file size in MB.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
File size in MB. On exception it will return -1
int
Gets the number of warnings in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of warnings in model. On exception it will return -1
int
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 the number of detail group definitions the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of detail group definitions in the model. On exception it will return -1
int
Gets the number of model group definitions in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of model group definitions in the model. On exception it will return -1
int
Gets the number of unplaced detail group definitions in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of unplaced detail group definitions in the model. On exception it will return -1
int
Gets the number of unplaced model group definitions in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of unplaced model group definitions in the model. On exception it will return -1
int
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 the number of line styles in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of line styles in model. On exception it will return -1
int
Gets the number of line patterns in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of line patterns in model. On exception it will return -1
int
Gets the number of fill pattern in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of fill pattern in model. On exception it will return -1
int
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 the number of CAD imports in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of CAD imports in model. On exception it will return -1
int
Gets the number of CAD links by model in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of CAD links by model in model. On exception it will return -1
int
Gets the number of CAD links by view in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of CAD links by view in model. On exception it will return -1
int
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 the number of image imports in the model.
doc (Autodesk.Revit.DB.Document) – The current Revit model document.
The number of image imports in the model. If an exception occurs during the retrieval, it returns -1.
int
Gets the number of image links in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of image links in model. On exception it will return -1
int
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 the number of rooms in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of rooms in the model. On exception it will return -1
int
Gets the number of unplaced rooms in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of unplaced rooms in the model. On exception it will return -1
int
Gets the number of redundant rooms in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of redundant rooms in the model. On exception it will return -1
int
Gets the not enclosed number of rooms in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of not enclosed rooms in the model. On exception it will return -1
int
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 the number of sheets in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of sheets in model. On exception it will return -1
int
Gets the number of views in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of views in model. On exception it will return -1
int
Gets the number of unplaced views in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of unplaced views in model. On exception it will return -1
int
Gets the number of view templates in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of view templates in model. On exception it will return -1
int
Gets the number of unplaced view templates in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of unplaced view templates in model. On exception it will return -1
int
Gets the number of view filters in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of number of view filters in model. On exception it will return -1
int
Gets the number of unused view filters in the model.
doc (Autodesk.Revit.DB.Document) – Current Revit model document.
Number of unused view filters in model. On exception it will return -1
int