algorithmic modeling for Rhino
Hi!
I need to serialize hatches in order to use them as a resource in visual studio.
With some code snippets I found on the forum, I've gotten it to work for very simple hatches, but as soon as they become more complicated, RhinoCommon.dll throws an exception. It's stopping on the byte-conversion using GH_Convert.
Excteption:
"
A first chance exception of type 'System.ArgumentNullException' occurred in RhinoCommon.dll
Additional information: Value cannot be null.
If there is a handler for this exception, the program may be safely continued.
"
Any ideas?
Tags:
I wrote a script similar to yours, seems to work so far. If you can post a hatch that fails with this I'd like to see it.
Thanks for a quick reply David.
I've attached a hatch that fails in your script.
It seems to work here. What versions of Rhino and Grasshopper are you using?
Rhino:
Version 5 SR8 64-bit
(5.8.40315.18095, 03/15/2014)
GH:
0.9.0076
Are you running a newer build of rhinocommon btw?
I'm running Rhino5 SR11, and bugs in the (de)serialization of OpenNurbs data via RhinoCommon may have been fixed between SR8 and SR11.
Resolved by updating Rhino.
Thank you
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by