HB Model to OSM in Rhino.Inside Revit Error - Simulation does not run

Hi,

When running a HB Model to OSM node in Rhino.Inside from Revit I get the following error:

Runtime error (IndexOutOfRangeException): index out of range: 0
Traceback:
line 224, in script

The node stops after a message of: ‘Done with Model Translation!’ in the cmd window.

This only happens when running from Rhino.Inside, when the exact same geometry and graph is run from Rhino standalone, the OSM node runs and outputs results.

What I have tried:
When installing different versions of IronPython to the system I get different errors from this node.
When any version of IronPython other than 2.7.12 is installed as the system IronPython install, I get an error of _sqlite3 not found. The Model to OSM node does however run in this case. Again this error regarding _sqlite3 occurs from Rhino.Inside and not rhino Standalone, which works with any version of IronPython installed. _sqlite3 can also not be found when no version of IronPython is installed to the system and running from Rhino.Inside.

I have installed Honeybee Tools from within grasshopper running from Rhino.Inside, I have run the ‘set_python_path’ file from ‘C:\Users\User\ladybug_tools’.

Is there anything I am missing? Is there any way to force Revit to use the exact configuration as that which Rhino uses?

Thanks in advance.

Hi soup,

There is a dedicated Ladybug discourse forum that might be helpful as well.

This looks very difficult to troubleshoot without identifying the different .dll’s being loaded at the Revit level.

Japhy,

Thanks for the reply, I posted there and Chris Mackey helped on that side and provided a solution;
the thread is here:

Resolving the issue is possible from within a specific Ladybug Tools node.

Thanks again.

3 Likes

I guess It came to the Python Version Mismatch, Thank you for sharing the outcome of this thread,