[Plugin] Equal Segments

[Plugin] Equal Segments

Postby TIG » Tue Oct 11, 2011 12:00 pm

This pair of tools draws fixed length segments.
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.
TIG-equalsegs.rb
TIG-equalsegs.PNG
or
TIG.equalsegssweep
and then enter values in a dialog.
TIG-equalsegssweep.rb
TIG-equalsegssweep.PNG

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__))
You can change 'Draw' menu name to whatever other menu you want... and obviously you change 'equalsegs' to read 'equalsegssweep' for the other tool !
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Equal Segments

Postby Gaieus » Tue Oct 11, 2011 12:50 pm

You're too kind, TIG! ;)
0
User avatar
Gaieus 
 

Re: [Plugin] Equal Segments

Postby pilou » Tue Oct 11, 2011 1:30 pm

and for select all segments with a length given By Chris Fullmer ;)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: deepuser and 15 guests

Visit our sponsors: