failure
Revit failures handler.
Attributes
mlogger = get_logger(__name__)
module-attribute
RESOLUTION_TYPES = [DB.FailureResolutionType.MoveElements, DB.FailureResolutionType.CreateElements, DB.FailureResolutionType.DetachElements, DB.FailureResolutionType.FixElements, DB.FailureResolutionType.UnlockConstraints, DB.FailureResolutionType.SkipElements, DB.FailureResolutionType.DeleteElements, DB.FailureResolutionType.QuitEditMode, DB.FailureResolutionType.SetValue, DB.FailureResolutionType.SaveDocument]
module-attribute
Classes
FailureSwallower(log_errors=True)
Bases: IFailuresPreprocessor
Swallows all failures.
Source code in pyrevitlib/pyrevit/revit/db/failure.py
Functions
get_swallowed_failures()
Source code in pyrevitlib/pyrevit/revit/db/failure.py
reset()
preprocess_failures(failure_accessor)
PreprocessFailures(failuresAccessor)
Required IFailuresPreprocessor interface method.