Winform - unusable in R25?

So I’ve spent pretty much all day trying to overcome issue after issue with winforms in Revit 25…

The latest one is I can’t add a click event to a button…

Seems I can’t use WPF either…

So I’m guessing winforms in Python are not really a viable option with my Dynamo scripts any more?

:frowning:

I don’t think this is the case.

However using the native language for a library is pretty much always easier than having to deal with an interpreter.

If you use CPython3, need to update to Revit 2025.2 or use IronPython3

related solved issue

1 Like

Thanks.:slight_smile:

Maybe a really stupid question but… How would I find this information without asking on here?

Is there a list of stuff that doesn’t work that’s known somewhere?

I spent several hours trying option after option after option trying to get my event handler to work on my winform before posting on here in frustration…

Ooo, 25.2 the text has been shrunk again :hearts:

1 Like

Personally, I try to keep track of changes on the Github Dynamo repos and specifically the issues and changelogs.

if you’re stuck with a CPython3/PythonNet2 engine script, I’d advise you to stick with IronPython (IronPython3 if you’re on Revit2025) until PythonNet3 arrives on the CPython3 engine.

while you’re waiting for PythonNet3, you can already solve the problems associated with migration to Net8

1 Like

I had a look on git… but it seems really complicated.

I don’t think there is Iron Python in Revit 25?

I’ve decided it’s a blessing in disguise and am going to put a little more effort into learning C#. :smiley:

accessible via the package manager

1 Like

Ahhh! Thanks. I assumed as it only gives you the choice of Py3 in the OOTB node that you couldn’t have that any more.