Sweep in Visual script

When we sweep  a rectangle or accute shaped closed  profile , the corner are not forming properly and gives an error..is there any way to overcome this issue in VS?....sweeping individual lines and extrapolate and trim is another option but i would be good to know any other option available in VS