One draws a straight section and then a given radius 'arc' section each with a specified number of segments - with all segments the same length.
The other draws an 'arc' of a set sweep, segment length and number of segments - calculating the radius for you...
Place the .rb files in the Plugins folder and restart Sketchup...
You use each by entering its command in the Ruby Console + <enter>
TIG.equalsegs
and then enter values in a dialog.or
TIG.equalsegssweep
and then enter values in a dialog.
If you MUST have a menu item add this code between the last two 'end' lines in the script
- Code: Select all
menu=UI.menu("Draw").add_item("TIG-equalsegs"){TIG.equalsegs()}unless file_loaded?(File.basename(__FILE__))
file_loaded(File.basename(__FILE__))

