Hi everybody!
I’m looking to convert Model Object Tekla components to brep. I have obtained Model Object components from view. But don’t know how to convert them to Brep. If I try to use Convert to Brep, the resulting Breps are discrete, they cannot be flattened together. Anyone have any ideas how to convert to brep and flatten them together? Thanks a lot
Here is an illustration
It’s possible (the Convert to Brep component does it), but quite long to implement.
Starting from the GetSolid() method, you can extract the faces enumerator, then for each face the loops enumerator, then for each loop the vertices enumerator and rebuild a Rhino Polyline from there.
Note that not all ModelObjects accept the GetSolid, so you have to test your object type (Part, BoltGroup, BaseWeld…)