If you've encountered the Revit API exception "Cannot execute Revit API outside of Revit API context"—often when running code from a modeless window—this library may help. A typical solution is to ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results