Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.25 KB

README.md

File metadata and controls

25 lines (15 loc) · 1.25 KB

RevitTest.InContext.Tests

Revit 2021 Visual Studio 2022 License MIT

This project contains tests to benchamark some implementations to check if Revit is in Context using the ricaun.RevitTest Framework.

Tests

  • InAddInContext: Check if Revit is in Context using the UIApplication object to get the ActiveAddInId, is null when outside Revit API context.
  • InApiMode: Check if Revit is in Context using internal method inside the assembly APIUIAPI using the method isRevitInAPIMode to check if is in API mode.
  • InContext: Check if Revit is in Context using the UIApplication object to register a Idling event, exception happen if is outside Revit API context.

Revit API Forum

License

This project is licensed under the MIT License.


Do you like this project? Please star this project on GitHub!