Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

How can i determine if an arc is clockwise or counterwise? #233

Open
PacoLAR opened this issue Nov 29, 2020 · 1 comment
Open

How can i determine if an arc is clockwise or counterwise? #233

PacoLAR opened this issue Nov 29, 2020 · 1 comment
Labels

Comments

@PacoLAR
Copy link

PacoLAR commented Nov 29, 2020

Good afternoon, I would like to know when an arc is clockwise or counterclockwise. If there is an attribute that specifies it or how it could be obtained.

@haplokuon
Copy link
Owner

In the Arc DXF definition there is no value that defines if the arc is CCW or CW. This is handle by a header variable named "AngDir" that you can find in the DrawingVariables of the document. This not only affects the arc but also all angle values. See the AutoCad manual for more information on that. If that value is changed while adding arcs to a document, netDxf will not modify the start and end angles of the existing ones you will need to take care of that, this is also applicable to other places where angles are involved.

By default, the AngDir value is set to CCW and my recommendation is to follow the standards, where positive angles are CCW, and always leave this as it is.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants