update
Helper functions to update info and elements in Revit.
Attributes
Functions
set_name(element, new_name)
Source code in pyrevitlib/pyrevit/revit/db/update.py
update_sheet_revisions(revisions, sheets=None, state=True, doc=None)
Source code in pyrevitlib/pyrevit/revit/db/update.py
update_revision_alphanumeric(token_list, prefix='', postfix='', doc=None)
Source code in pyrevitlib/pyrevit/revit/db/update.py
update_revision_numeric(starting_int, prefix='', postfix='', doc=None)
Source code in pyrevitlib/pyrevit/revit/db/update.py
update_revision_numbering(per_sheet=False, doc=None)
Source code in pyrevitlib/pyrevit/revit/db/update.py
update_param_value(rvt_param, value)
toggle_category_visibility(view, subcat, hidden=None)
Source code in pyrevitlib/pyrevit/revit/db/update.py
rename_workset(workset, new_name, doc=None)
update_linked_keynotes(doc=None)
set_keynote_file(keynote_file, doc=None)
Source code in pyrevitlib/pyrevit/revit/db/update.py
set_crop_region(view, curve_loops)
Sets crop region to a view.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
view |
View
|
view to change |
required |
curve_loops |
list[CurveLoop]
|
list of curve loops |
required |
Source code in pyrevitlib/pyrevit/revit/db/update.py
set_active_workset(workset_id, doc=None)
Set active workset.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
workset_id |
WorksetId
|
target workset id |
required |
doc |
Document
|
target document. defaults to active |
None
|