Crash trying to export obj from GH in Rhino8

hi there,

I have a C# script to export meshes from GH to an obj file. This works in Rhino 7 and used to work in Rhino 8 as well.

This now hangs then crashes Rhino 8.24.25281.15001 on Windows 11
I’ve tried both the old and new script components.

2025-11-14_gh_export_obj_crash.gh (15.5 KB)

I appreciate all help or potential other solutions.

Have you tried the native Grasshopper Rhino ‘Export Model Block Definition’ component?

Not yet, as we have a mix of Rhino 7 and 8 so far.
I’ll give it a try and see if we can move everything to Rhino 8. Thanks!

You should. I find it’s a huge time saver as geometry does not need to be baked into Rhino first but is saved directly into a specified folder…

That’s exactly what the C# script does, using RhinoDoc.CreateHeadless method and FileObj class to export to obj without cerating anything in the open Rhino doc.
The attachced gh file is a stripped down version. The original gh file exports a few things to different file formats.

Hi, Bernd

I ran the script and exported an .obj out without any problems. For what it is worth, I am using Rhino 9 WIP (9.0.25315.12305, 2025-11-11). I’m also on Windows 11 (latest updates, etc.).

Here is the output loaded in Blender:

Best regards,

  • Ronnie

Martin, I agree with you. Here is what a whole directory of files translated from DXF to OBJ without reading anything into Rhino: