Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

Sweep and polyline path direction

E3DE
Enthusiast

Sweep and polyline path direction

E3DE
Enthusiast
Enthusiast

Hi,

I noticed that invert polyline (path of sweep) vertex direction change the behaviour of sweep command: the extrusion changes "indide" or "outside" the path.

I use this code to create a sweep:

Sweep

 

To do this by code I need to invert the direction of polyline or there is an option to say "do sweep on the contrary". If not how to invert polyline vertex by code?

 

Thank you

Andrea

0 Likes
Reply
Accepted solutions (1)
412 Views
2 Replies
Replies (2)

_gile
Consultant
Consultant
Accepted solution

Hi,

 

What about using the Curve.ReverseCurve method ?



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes

E3DE
Enthusiast
Enthusiast

I didn't know this method. Thank you! 

0 Likes