.NET

## .NET

Distinguished Contributor
Posts: 116
Registered: ‎02-26-2009
Message 1 of 5 (1,804 Views)

# Polyline direction (clockwise or counterclockwise)

1804 Views, 4 Replies
09-07-2013 11:52 PM

I am trying to set up the bulge for  a polyline, in order to set up the bulge currecty I need to know if the polyline was created clockwise or counterclockwise.

Any advice would be appreciated.

-J

Hi,

I just did a search for "clockwise" in this forum here ... and the second item (in the current search result) answers your question (>>>click<<<).

- alfred -

*Expert Elite*
Posts: 9,583
Registered: ‎06-29-2007
Message 2 of 5 (1,800 Views)

# Re: Polyline direction (clockwise or counterclockwise)

09-08-2013 12:03 AM in reply to: junoj

Hi,

I just did a search for "clockwise" in this forum here ... and the second item (in the current search result) answers your question (>>>click<<<).

- alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Distinguished Contributor
Posts: 116
Registered: ‎02-26-2009
Message 3 of 5 (1,733 Views)

# Re: Polyline direction (clockwise or counterclockwise)

09-10-2013 10:09 PM in reply to: Alfred.NESWADBA

Alfred, thank you for the link.

I don’t think they ever solved the problem in the link, but it have a good idea. I end up using my own algorithm at the end of the day

*Expert Elite*
Posts: 2,131
Registered: ‎04-29-2006
Message 4 of 5 (1,721 Views)

# Re: Polyline direction (clockwise or counterclockwise)

09-10-2013 11:25 PM in reply to: junoj

By my side, I think the algebraic area (signed area) DOES solve the problem.

Did you try the code I posted in the last repy of this thread?

http://forums.autodesk.com/t5/NET/How-to-know-the-orientation-of-a-polyline/m-p/3784606/highlight/tr...

Gilles Chanteau
Distinguished Contributor
Posts: 116
Registered: ‎02-26-2009
Message 5 of 5 (1,701 Views)

# Re: Polyline direction (clockwise or counterclockwise)

09-11-2013 07:55 AM in reply to: _gile

Thank you Gilles.

Yes, that is the code i used.

Post to the Community

Have questions about Autodesk products? Ask the community.

Download & Installation
Subscription Management
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.