Sample Code Revit Batch Processor 1.1.16 documentation
Returns a list containing the active document followed by all loaded linked documents.
doc (Autodesk.Revit.DB.Document) – The active Revit document.
List of documents available for selection.
list[Autodesk.Revit.DB.Document]
Prompts the user to select a Revit document (active or linked) via a pyRevit SelectFromList dialog.
doc (Autodesk.Revit.DB.Document) – The active Revit document.
forms (module) – The pyRevit forms module.
button_name (str) – Label on the selection button.
multiselect (bool) – Allow selecting multiple documents.
The selected document, a list of selected documents, or None if cancelled.
Autodesk.Revit.DB.Document or list[Autodesk.Revit.DB.Document] or None
pyRevit Select from list UI object to pick room or rooms. :param rvt_doc: Revit Document :type rvt_doc: Document :param multiple: Allow multiple selection :type multiple: bool :return: Room or list of rooms :rtype: Room or list[Room]
PyRevit multiselector to pick a single room.
PyRevit multiselector to pick multiple rooms.
PyRevit multiselector to pick a single level.
PyRevit multiselector to pick multiple levels.
Deafult element name builder is used to build the element name shown in the UI by combining the element name and element Id
element (Autodesk.Revit.DB.Element) – An element
A name of the element.
str
lists Elements provided by element getter function in UI and returns the users selection
doc (Autodesk.Revit.DB.Document) – Ther current Revit model.
forms (_type_) – pyRevit forms
element_getter (_type_) – Function accpeting the document as the only argument returning a list of elements or empty list.
element_selection_description (str) – Text to be displayes on button to prompt user
None if nothing was selected. Otherwise a list of element ids
None or [Autodesk.Revit.ElementId]