Created
January 19, 2025 16:11
-
-
Save ricaun/a491da0efa658664c62a9b21a7e75dba to your computer and use it in GitHub Desktop.
Revit API in AddIn context implementation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool InAddInContext(UIApplication application) | |
{ | |
// ActiveAddInId is null when invoke outside Revit Api context. | |
return application.ActiveAddInId is not null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment