Object reference not set to an instance of an object in Trim with Breps (Brep)

Hi,

Could anyone help me to solve my issue?
There has been this types of question in this forums but I couldn’t find my case.

My issue:
Error message: Object reference not set to an instance of an object
When I wanted to trim curves with a brep (breps) component, this error has appeared
The curves did’t cut as below image:

My process:
Firstly, I created a loft surface from two curves.
Secondly, I made curves on the surface.
Finally, I wanted to trim the curves by brep.

Here is my data:
object reference not set to an instance of an object.3dm (98.4 KB)
object reference not set to an instance of an object.gh (12.8 KB)

Thanks for your help!

There’s no error found when I open your definition. Have no idea.

object reference not set to an instance of an object_re.gh (20.8 KB)

@HS_Kim except you opened in Rhino 6, and I see the user asks about Rhino 5 (at least thread is tagged with that). Probably a bug that got fixed between the two releases.

1 Like

Thanks for quick reply.
It is very strange. I tested my script with two different computers.
I had a same error message from them.
Are you using Rhino 6?
I am using Rhino 5.

Thanks.

Is there any other component that can cut curve with breps?

when you fit your curves beofre it seems to work on R5