Sample Code Revit Batch Processor 1.1.11 documentation
Groups sheets by a given property
sheet_data ([:class: .DataSheet]) – A list od DataSheet instances
property_name (str) – The name of the sheet instance property by its value to group the sheets by
ValueError – property_name needs to be of type str
ValueError – sheet_data needs to be of type list
ValueError – sheet got multiple properties of the given name
ValueError – sheet no properties of the given name
ValueError – sheet_data list contained a none DataSheet object
- Result class instance.
.status True if sheets where grouped successfully, otherwise False.
.message will be empty.
. result (a list with the grouped sheets as a dictionary)
on exception:
.result Will be False
.message will contain exception message.
. result (empty list)
Adds two header keys to json output to be saved to file.
file name
date processed
dic ({str:[]}) – A dictionary containing all data items. Key is the data tpe, value the data objects
model_name (str) – The revit model name.
A dictionary
{str:[]}