Skip to content

ricaun-io/RevitTest.InContext.Tests

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages