Grasshopper + HumanUI

I managed to attach a Grasshopper file to my custom Revit tab. This Grasshopper file should allow Text input, file selection, Accept and Cancel decision (using HumanUI). The data flow is tested and worked in native Rhino/Grasshopper.

However, the UI window immediately shuts down (no error message) before I can enter any input when I launch the Grasshopper file via my custom pyRevit/RhinoInside tab which is not the same behavior when I run the file inside native Rhino/Grasshopper.

For context, this script is a part of a bigger workflow to allow my structural engineers to export Robot analysis data into Excel to continue structural beam elements design and decide member sizes. If there is a member size change required, the engineers will run another Grasshopper file that extracts the data from the Excel file and automatically change the beam element size in Revit via Grasshopper/RhinoInside.

I’ve managed to run Dynamo + Data-Shapes via pyRevit before without a problem so I’m not sure if I miss any technical requirements when executing Grasshopper + HumanUI.

Any pointers are appreciated :pray:

Sample Grasshopper :point_right: Write to Excel Grasshopper File

I cannot test it myself, but I guess that HumanUI has a different backend and dependencies that are not part of pyRevit and not packed in the gh script.

On the HumanUI repo readme:
image

MahApps.Metro is packed with pyRevit, there might be a mismatch of version if you GH script uses a different version (which is very likely) but I don’t know if both really interact

If you are sure the issue is related to humanUI, I would suggest building a simpler UI in pure python in GH to bypass the issue. Or even trying the same GH script with no UI, hard coding the inputs.

1 Like

you may find more insights in here Rhino Inside Revit crashing with Human UI (if window has not been opened) - #7 by Matthew_Breau1 - Revit - McNeel Forum

and here
https://discourse.mcneel.com/search?q=human%20ui%20revit

Hi Jean-Marc,

Thanks for the links! It seems like this thread is more suited for Rhino.Inside, not pyRevit.

1 Like