How to see and change Clockwise/CCW orientation of entities?
Posted: Thu Jan 01, 2009 6:36 pm
I see a "dark blue" end of not-closed polyline, so I can distinguish start/end. I need to export .dxf to CAM software which uses DIRECTION of entities to Cutter Radius Compensation left/right on each entity.
But...
1. Lines seems identical (can only manually swap coordinates in editing dialog).
2. Arcs - the same as lines
3. Closed polylines and circles - no solution at all (can't find direction, because "dark blue" coinsides with the starting point).
Please explain me how to make a tool to:
4. See a direction (little sign like an ARROW, parallel to the first polyline segment or line or a colored line endings like unclosed polylines)
5. Change a direction:
5.1. by clicking on lines/unclosed polylines/arcs - swapping begin and end
5.2. by clicking on closed polylines - changing CW/CCW
I think 4. can be only made by a)source code, b) Script which will create new layer with "arrows helpers" near each entity.
I think 5.1, 5.2 easily by scripting (pick an object and change direction. Easy for lines/arcs/ellipses=just swap points/change direction flag)
But...
1. Lines seems identical (can only manually swap coordinates in editing dialog).
2. Arcs - the same as lines
3. Closed polylines and circles - no solution at all (can't find direction, because "dark blue" coinsides with the starting point).
Please explain me how to make a tool to:
4. See a direction (little sign like an ARROW, parallel to the first polyline segment or line or a colored line endings like unclosed polylines)
5. Change a direction:
5.1. by clicking on lines/unclosed polylines/arcs - swapping begin and end
5.2. by clicking on closed polylines - changing CW/CCW
I think 4. can be only made by a)source code, b) Script which will create new layer with "arrows helpers" near each entity.
I think 5.1, 5.2 easily by scripting (pick an object and change direction. Easy for lines/arcs/ellipses=just swap points/change direction flag)