Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.UI package

Subpackages

Submodules

duHast.Revit.UI.custom_selection_filter_element module

A selection filter sample.

duHast.Revit.UI.custom_selection_filter_element.selection_filter_floors(elem)

Returns True if the element is fo category Floors and a family instance

Parameters:

elem (Autodesk.Revit.DB.Element) – A revit element

Returns:

True if the element is fo category Floors and a family instance, otherwise False

Return type:

bool

duHast.Revit.UI.custom_selection_user module

Implementation of a user pick action with a custom element selection filter.

duHast.Revit.UI.custom_selection_user.get_user_selection(doc, uidoc, ui_text, selection_filter=<function selection_filter_floors>)

Get user selection of set down families.

Parameters:
  • doc (Autodesk.Revit.DB.Document) – Revit Document

  • uidoc (Autodesk.Revit.UI.UIDocument) – Revit UIDocument

  • ui_text (str) – User text for the selection dialog

Returns:

Tuple containing a list of selected elements and a list of selected element ids.

Return type:

(list, list)

Module contents