report
"Utility methods for reporting Revit data uniformly.
Classes
Functions
print_revision(rev, prefix='', print_id=True)
Print a revision.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rev |
Revision
|
revision to output |
required |
prefix |
str
|
prefix to add to the output text. Defaults to empty string. |
''
|
print_id |
bool
|
whether to print the revision id. Defaults to True. |
True
|
Source code in pyrevitlib/pyrevit/revit/report.py
print_sheet(sht, prefix='', print_id=True)
Print the name of a sheet.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sht |
ViewSheet
|
sheet to output |
required |
prefix |
str
|
prefix to add to the output text. Defaults to empty string. |
''
|
print_id |
bool
|
whether to print the sheet id. Defaults to True. |
True
|
Source code in pyrevitlib/pyrevit/revit/report.py
print_view(view, prefix='', print_id=True)
Print the name of a view.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
view |
View
|
view to output |
required |
prefix |
str
|
prefix to add to the output text. Defaults to empty string. |
''
|
print_id |
bool
|
whether to print the view id. Defaults to True. |
True
|