Draw Polyline - Extra options to create arcs
Posted: Sat Jan 10, 2015 1:38 am
Hi
As you will be aware the polyline command only creates tangential arcs. This means you need to create other types of arcs manually and then convert them to polylines. I have added the ability to create different types of arcs while drawing a polyline.
As you can see there are 5 options, plus two direction buttons (top right).
The options work in a similar way to the way in which you can draw arcs. The main difference, of course, is that the current vertex is the first point of the arc.
Tangential
This option draws arcs as it does now. You'll notice the two direction buttons are greyed out, as they do not affect the arcs.
Center Pt
This option prompts you to enter a center point for the arc. The radius entry box is greyed out because the radius is the distance from the current vertex to the center point. The two direction buttons are enabled, so you can decide which way to draw the arcs. Select the endpoint of the arc to finish the option.
Second Pt
This option draws an arc through three points so this prompts you for the second point of the three. Then you select the third point to finish the option. The radius and direction buttons are greyed out, because there is only one way to draw an arc through the three points, in the order they are entered.
End Pt, Radius
This option prompts you for an end point of the arc. The radius of the arc is the value in the radius entry box. If the distance between the current vertex and the end point is less than twice the radius there are two possible center points, and therefore two possible arcs for each dirction of the arc. You are prompted to select the arc you wish to use. Use the direction buttons to get the arc you want. When the arc you want is displayed, click the mouse to finish the option.
End Pt, Sweep
This option allows you to select any end point and uses the value in the sweep entry box. You can also change the direction of the arc.
(Note: The value in the sweep entry box can be used with all these options, so you can get an exact angle.)
I have attached the file 'DrawPolyline.zip', which contains a directory 'DrawPolyline' which should replace the 'DrawPolyline' directory in the 'scripts/Draw/Polyline' directory.
Try it out, and let me know what you think.
Thanks
riverbuoy
As you will be aware the polyline command only creates tangential arcs. This means you need to create other types of arcs manually and then convert them to polylines. I have added the ability to create different types of arcs while drawing a polyline.
As you can see there are 5 options, plus two direction buttons (top right).
The options work in a similar way to the way in which you can draw arcs. The main difference, of course, is that the current vertex is the first point of the arc.
Tangential
This option draws arcs as it does now. You'll notice the two direction buttons are greyed out, as they do not affect the arcs.
Center Pt
This option prompts you to enter a center point for the arc. The radius entry box is greyed out because the radius is the distance from the current vertex to the center point. The two direction buttons are enabled, so you can decide which way to draw the arcs. Select the endpoint of the arc to finish the option.
Second Pt
This option draws an arc through three points so this prompts you for the second point of the three. Then you select the third point to finish the option. The radius and direction buttons are greyed out, because there is only one way to draw an arc through the three points, in the order they are entered.
End Pt, Radius
This option prompts you for an end point of the arc. The radius of the arc is the value in the radius entry box. If the distance between the current vertex and the end point is less than twice the radius there are two possible center points, and therefore two possible arcs for each dirction of the arc. You are prompted to select the arc you wish to use. Use the direction buttons to get the arc you want. When the arc you want is displayed, click the mouse to finish the option.
End Pt, Sweep
This option allows you to select any end point and uses the value in the sweep entry box. You can also change the direction of the arc.
(Note: The value in the sweep entry box can be used with all these options, so you can get an exact angle.)
I have attached the file 'DrawPolyline.zip', which contains a directory 'DrawPolyline' which should replace the 'DrawPolyline' directory in the 'scripts/Draw/Polyline' directory.
Try it out, and let me know what you think.
Thanks
riverbuoy