Catch IronPython Exceptions from C# - Rhino Developer - McNeel Forum
Por um escritor misterioso
Last updated 26 abril 2025

Hello, I am trying to use Rhino.Runtime.PythonScript to execute Python code (that may raise exceptions) from C#. I having some difficulties catching the exceptions because the raised types are not derived from System.Exception (please see screenshots below). I was wondering how can I fix this? Thank you in advance! Unable to catch the exception raised from IronPython.

Rhino.Inside®.Revit

Scripting - McNeel Forum
GrasshopperPrimer V3-3 en

ModeLab Grasshopper Primer Third Edition by Gil Akos & Ronnie Parsons by Pablo C. Herrera - Issuu

Rhino Developer - McNeel Forum
Scipy and Numpy - Grasshopper
Scipy and Numpy - Grasshopper

Ladybug Tools for Grasshopper 1.0.9 Patches & Improvments - releases - Ladybug Tools

IronPython Runtime Exception - Grasshopper Developer - McNeel Forum
Scipy and Numpy - Grasshopper

Scripting - McNeel Forum
Scipy and Numpy - Grasshopper

Setpoint manager DOAS templates - ladybug-tools - Ladybug Tools

Ironpython Studio - Colaboratory

Ladybug Tools for Grasshopper 1.0.9 Patches & Improvments - releases - Ladybug Tools