Skip to content
Jan Christel edited this page Mar 22, 2025 · 29 revisions

Welcome to the SampleCodeRevitBatchProcessor wiki!

This repository is contains 2 main sections

  • pypi package of duHast
  • A /Samples folder using duHast in the context of Revit Batch Processor

duHast

DuHast is essentially a library of utility functions which fall into the following categories:

  • Data
  • Excel
  • Geometry
  • pyRevit
  • Revit
  • UI
  • Utilities

Data

Varies attempts to export Revit elements to analyse their relationships.

  • Rooms vs ceilings: using shapely package to find which ceilings are modelled in a room

Excel

A small collection of functions to read Excel files.

Geometry

Some basic geometry classes which are used in /Data to store geometry information of elements and make that information accessible outside the Revit API.

pyRevit

A small collections of UI focussed pyRevit functions used in the pyRevit sample extension.

Revit

This contains a large number of utility functions relating to Revit. The structure follows loosely the Revit categories naming structure.

UI

Contains a basic user interface to allow file selection in Revit Batch Processor as well as WPF base classes.

Utility

A collection of:

  • operating system related utility functions (mainly file related)
  • Base classes used throughout duHast

Samples

This directory contains:

  • \BAT
    • demos how to run concurrently Revit Batch Processor sessions using .bat files
  • \PowerShell
    • demos how to run concurrently Revit Batch Processor sessions using powershell script files
  • \Flows
    • A number of samples showing the complete Revit Batch Processor set up to i.e export models, report model health properties etc
  • \pyRevit
    • A pyRevit extension using duHast

For a more detailed documentation refer to the docs

Clone this wiki locally