This project contains tests to benchamark some implementations to check if Revit is in Context using the ricaun.RevitTest Framework.
InAddInContext
: Check if Revit is in Context using theUIApplication
object to get theActiveAddInId
, is null when outside Revit API context.InApiMode
: Check if Revit is in Context using internal method inside the assemblyAPIUIAPI
using the methodisRevitInAPIMode
to check if is in API mode.InContext
: Check if Revit is in Context using theUIApplication
object to register aIdling
event, exception happen if is outside Revit API context.
This project is licensed under the MIT License.
Do you like this project? Please star this project on GitHub!