Sample Code Revit Batch Processor 1.1.11 documentation

Contents:

This Page

duHast.Revit.Purge.Objects package

Submodules

duHast.Revit.Purge.Objects.ModifierBase module

A class used to implement deleted and modified element counts when using purge by delete.

Adjust deleted and modified elements if necessary: this might be required where an element is presented through 2 or more elements in the revit api: e.g. a line style is represented to a line style and a graphics style this function will only purge elements which result in only 1 element deleted and no other element modified hence a delete modifier should check the deleted elements and if appropriate return only one element to be deleted same applies to modified elements: a custom modifier should return 0 elements if appropriate in order for the element to be purged

class duHast.Revit.Purge.Objects.ModifierBase.ModifierBase

Bases: Base

Class constructor.

modify_deleted(doc, deleted)

Base implementation to modify the deleted element count.

Returns deleted element list unchanged

Args:

deleted: The deleted element count

modify_modified(doc, modified)

Base implementation to modify the modified element count.

Returns modified element list unchanged

Args:

modified: The modified element count

Module contents