Solution Exception

Hi all. I do try to nest some parts using the OpenNest but unfortunately I do get an error that says “Solution Exception: Object reference not set to an instance of an object” and I don’t know how I can fix this. I am using Rhino7 R36 with OpenNest 1.5.1.

Solution (8.2 KB)
Solution Exception.3dm (3.2 MB)

it’s because the battery only works on polyline curves. some of your curves are circular curves, hence the error (the error message is misguiding)
one workaround is to rebuild the curves as polylines (degree 1)

you also want to flatten the input so that it calculates the average plane across all curves, if that’s your intention

1 Like

Thank you for explanation, actually I do want to nest the 3D parts, which give-me errors, so I tried an alternative 2D workflow which also gave-me errors.

OpenNest only works with 2D Polygons, so nesting 3D parts needs more work

This is because your 2D workflow doesn’t create nice, clean closed 2D polygons. You might want to manually trace the boundaries of your objects using Planar projection in Rhino. And pass those to the algorithm