Automatic perpendicular sweep


Hi guys, I’m trying to sweep 1 the red edge curves of the column along the blue curve. The problem is that because the red curves aren’t perpendicular to the start point of the blue curve the result I’m getting is not quite what I’d like. Is there any way to get sweep 1 to create the shape that would be created if the red curves were perpendicular to the start point tangent of the blue rail curve or will I have to rotate the cross sectional curves into the column? PS there are quite a lot of these in the model I’m working on so if there is any way to do this it’d save tonnes of time, thank you

Hello -

@danjarvis8 - try this quick script -

SweepPerp.py (1.4 KB)

It assumes the path and shape curves intersect at the end of the path curve…

To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"

@danjarvis8 - This might be more what you need - I’m not sure it gets the direction right in all cases but give it a try - fewer clicks and better (I think) result…

SweepPerp2.py (2.1 KB)

-Pascal

Thanks Pascal, little bit of trimming but that’s really useful