OneSweep Problem?

hi ,everyone.
i try use the SweepOneRail create a sweep, but i can not close the sweep,What’s missing?
this is code,


this is rail and section.

this is result

but when i set the MiterType=1 , it is work fine, why?


But for open curves, this miter option has no effect.
How to achieve the above trim effect?

1 Like

Hi @yangf85,

Does Brep.CreateFromSweepSegmented work any better?

– Dale

Oh, I haven’t tried this method yet, but I’m going to give it a try and let you know the outcome.