Import 3dm in rhino.compute

Hi everyone,

I am trying to use the Import 3dm node in a remote-executed grasshopper definition over Hops, on a local compute setup. So far I am unsuccessful.
I attach the compute console log, when trying to run the scripts.


Any idea how that can be solved ?
Maybe @eirannejad you’re again the one to help here.

Here are the definitions and 3dm files I used for testing.
import3dm.gh (5.7 KB)
caller.gh (2.4 KB)
702_.3dm (85.4 KB)

EDIT :

I also tried with the new rhino 8 component, Import Content, still no success. I attach the .gh definition for this script as well.


import3dm_alternative.gh (4.6 KB)

So, right now rhino.compute doesn’t know how to transmit Model Objects back and forth. We have put together a solution but it needs a little more testing, etc. before it can be released. So, the solution is to use the Import Content and then extract the raw geometry (ie. breps in your example) and return those instead of the Model Objects themselves. Hopefully that makes sense. Try this example and see if it works for you.
import3dm_alternative_AP.gh (8.3 KB)

That works great, thanks. It’s enough for me to solve my issue, I don’t have to transmit the model object itself. Thanks again for the quick reply :+1: