Sample Code Revit Batch Processor 1.1.14 documentation

Contents:

This Page

duHast.UI.Objects.WPF.Windows package

Submodules

duHast.UI.Objects.WPF.Windows.WPFWindowBase module

An implementation of a custom wpf window base class which can be shown in the Revit context.

class duHast.UI.Objects.WPF.Windows.WPFWindowBase.WPFWindowBase(*args: Any, **kwargs: Any)

Bases: Window

on_current_view_model_changed()
update_content_view(view_model)

Dynamically set the content of the main grid control based on the current view model

Args:

view_model (_type_): The new view model to be applied

on_closed(sender, event)

Handles the Closed event.

Parameters:
  • sender (object) – The sender.

  • event (object) – The event.

action_on_close()

Handles the action on close.

Can be overwritten by derived classes to handle cleanup tasks.

Module contents