Repository navigation
Replies: 1 comment 2 replies
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
I was doing some snoop around in Revit 2027 API and noticed the internal method
IsInAPIContext.So your implementation could be replaces in Revit 2027 using
UnsafeAccessor.Another thing that caught my eyes was your current implementation, uses the assembly
APIUIAPI, and I know you could replace withRevitDBAPIto make possible to know the context without the Revit UI, the same internal methods exist inRevitDBAPI.RevitToolkit/source/Nice3point.Revit.Toolkit/RevitContext.cs
Lines 26 to 33 in b5abec5
Here is a full implementation with some basic test using your
RevitApiTest.All reactions