Unhelpful debug information

This:
Message: expected Brep, got BrepObject

is incomprehensible.

Which Category @ivelin.peychev? :wink:

Satisfied?

Yes. Just trying to help you get answers. Satisfied?

No you’re not. Considering the likes you put on all other people’s replies to me that try to antagonize me in whatever kind of way.

:roll_eyes:

Hmm, never seen that - however, it seems like you got hold of a Rhino.DocObject that is a brep and you need its geometry (BrepObject.Geometry)

https://developer.rhino3d.com/api/RhinoCommon/html/N_Rhino_DocObjects.htm

Yep, I figured that out, but you can’t get that info at first glance.

I believe if the full “path” was there it would be much clearer.

Rhino.Geometry.Brep and Rhino.DocObjects.BrepObject.

Other thing would be to rename the Brep to BrepGeometry, but I doubt they will be inclined to face the consequences of all users with broken scripts :stuck_out_tongue_winking_eye: