Sample Code Revit Batch Processor 1.1.14 documentation
Prints a result class instance to the pyRevit console.
result (Result) – The result instance to be printed.
header (str) – The header to be printed before the result.
Prints a header to the pyRevit console.
header (str) – The header to be printed.
Gets the user options for saving out families
Options are: save out to single directory, exclude existing families, overwrite existing families
forms (Forms) – the forms object
the user options
dict
Gets the directories to process
forms (Forms) – the forms object
the directories to process
list
Very simple wrapper function to get a file path from the user.
forms (pyRevit forms module) – pyRevit forms
title (str) – The title of the file picker dialog.
file_extension (str) – The file extension to filter for. Example: “csv”
multi_file (bool, optional) – Single vs multi file selection, defaults to False (single file)
The file path(s) selected by the user. None if no file was selected.
str, [str],None
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]