Ruby script help
-
I have been designing some structures that I have decided to create a ruby script to produce. While I have no problems using Sketchup, Im still learing Ruby and am not sure what would be the best strategy.
I look forward to any input, help and guidance anyone may offer to write this script to be used by myself and my collegues.
Please see
I need to use width, hieght, eave and crown radii as well as length to create this form.
-
Hello and welcome the the forums.
Have you had any luck with automating the construction of your structures?
When drawing in SketchUp with Ruby, you are adding Entity object to an Entities collection. You may be interested in the add_face, add_edge and either add_arc or add_curve methods.
Start with a basic script with the minimal functionality you need.
entities = Sketchup.active_mode.active_entities pts = [] # an Array of points pts[0] = [0, 0, 0] pts[1] = [0, 1, 0] pts[2] = [1, 1, 0] pts[3] = [1, 0, 0] entities.add_face( pts )
-
Im traveling in Africa and havent resumed the effort yet but I appreciate your input. I have been thinking what would be the best way to approach it that would work simply and on sketchups strenghts. It should also be uncomplicated as sme languages can get.
-
Hello Jim
I rode globaltrainer's post and agree him about SU Ruby's scripts
Sorry for such a question : how do you use the script inside SU ?
( probably with Ruby window..but it allows just a command's line)Could you explain it in few words, for us Ruby's newbies ?
Thanks a lotMALAISE
-
MALAISE,
I made a tutorial just for you. (Not really, it's for anyone.)
http://sketchuptips.blogspot.com/2008/08/tutorial-getting-started-with-sketchup.html
-
Thanks a lot Jim
I really appreciate
It's exactly what a number of us was waiting for. The tutorial leads you
step by step in making-of. Now, I can go a step forward, having some ideas
I wanted to test for a long while.Would you agree, I translate your tutorial in French ?
MALAISE
Advertisement