Output window in pyRevit 7

Thank you everyone who contributed to the pyRevit release.. great work! :tada:

Wanted to bring up an issue I encountered, printed information doesn’t show in the output window. I tested it on multiple tools that have worked in previous versions and all of them now show an empty window.

I would appreciate if someone points me towards a thread with a solution or shed any light of this issue if others encountered it too.

Thanks!

A little more input is needed to actually help out, like Revit version and command type minimum.
Run pyrevit env in powershell/cmd, and share the result. What kind of print function are you using, e.g. print, output or logger?

Thank you for your response.

I am currently using Revit 2025 with pyRevit 7.

I am using everything out of the box, and just the Print() function in Iron Python 2.7.

I have a similar issue of an empty output window, but only once in a while; most of the time it’s fine. When it does happen, and I’m trying to save the output, I’m getting this prompt:

Error saving file: CoreWebView2 members cannot be accessed after the WebView2 control is disposed.

The HTML file is saved, but it’s empty.

Environment: pyRevit 7.0.0.26278, Revit 2026.5 (26.5.0.55), WebView2 Runtime 155.0.4283.62, Windows 10 (build 10.0.26300)

Sounds related to the issues #3785 and #3806. Would you mind creating an issue directly there?

I confirm the problem.

On 7.0.0 the output window regularly remains empty.

From observations: the same model, when applying the script in R23, produced an empty window, but in R27 - a normal report.

But the problem isn’t with R23 itself, as within R23, some scripts display blank windows, while others display the correct information. I haven’t run many scripts on R27 yet, so I haven’t collected any statistics.

I can create an issue, but the problem is I don’t know what data to provide. When I run the script with Ctrl, the logs aren’t displayed in the window.

Should I still create an issue?

Thank you for your message.. I admit I haven’t yet tested it well in R27.. let me do that today and then I’ll come back and confirm my findings. Thanks again! :folded_hands:

I wrote it more for @pyrevti, because he suggested creating an issue.

Please do so! Try to aggregate all the information there, in the forum it will get lost.

I have the same issue, and I think I fixed it, dropping a PR for it when I have finished testing it soon.

@pyrevti, Okay, I get it.

I’m currently testing the latest build 7.0.1.26305. The problematic scripts are now displaying information correctly. I’ll keep testing. If the problem persists, I’ll immediately create an issue.

@Jonn.O COOL!

So… an update is due :sweat_smile:

I no longer have the blank outputs, but now I can’t replicate the issue on clean v7.0 clone. :man_shrugging:t2:

Need to verify that I actually swap all the build artifacts I think.