System.Windows (Winform) with Ironpython

Hi Friends,
i was working on an script using ironpython 2.7 on Revit_2020 (has some windows messages to help the user to use it easily) and now i am trying to run it on Revit_2023 , i faced an issue that the script give me the error appears in the attached photo [i already installed ironpython2.7 as required but it seems the problem with reading the system files not with ironpython , any help or guide will be extremely appreciated.
Thanks in advnace.

1

Use DsIronpython package

1 Like

Hello @hanywillim …doesnt looks like its the newest dynamoiron package it should be 2.5…try this one and see it could help…dont think dsiron package is necessary…Python 2.7 in Dynamo 2.13 - #5 by solamour

2 Likes

PS does it work if you run with python 3 engine ?

hi Sovitek,
it seems it is not an Ironpython issue because the other nodes in python is working just the one which depends on the winform message, and the error is showing that it can not read System.windwos.Forms which something related to .NET framework

1 Like

Hi, @hanywillim

Can you share your code here ?

1 Like

I shut down Dynamo, Revit and Windows and reopened them all again and it seems everything works as expected.

Thanks everybody for your time. :heart:

3 Likes