SketchUcation Plugin Store

 

 

[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 !
Please, register (free) to access all the attachments on the forums.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13980
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Equal Segments

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

You're too kind, TIG! ;)
Gai...
User avatar
Gaieus
Administrator
 
Posts: 27626
Joined: Sat Oct 20, 2007 8:24 am
Location: Pécs, Hungary
Name: Csaba Pozsárkó
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: historical reconstruction
Level of SketchUp: Advanced

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 ;)
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
Pilou
Top SketchUcator
 
Posts: 10049
Joined: Wed Jan 23, 2008 10:33 pm
Operating system: Windows
SketchUp version: 6
License type: Free
SketchUp use: hobby
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Need SketchUp Books, Models, Styles or Textures? Check out our One Stop Shop for SketchUp.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012


Return to Plugins

Who is online

Users browsing this forum: auksinis, iko72, Majestic-12 Bot, omaru, unearthed and 12 guests