sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    [Plugin-like] SketchTalk

    Scheduled Pinned Locked Moved Plugins
    17 Posts 9 Posters 12.7k Views 9 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      MartinRinehart
      last edited by

      SketchTalk is a layer between the SketchUp Ruby API and the model. It lets non-programmers use the Ruby Console for modeling. Then the non-programmers can gather their commands in a file; save the file with a ".rb" extension and, almost by accident, have written a program. Programmers can extend SketchTalk easily. It's described here:

      http://www.MartinRinehart.com/models/tutorial/sketch_talk_by_example.html

      Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

      1 Reply Last reply Reply Quote 0
      • PixeroP Offline
        Pixero
        last edited by

        Wow, very interesting and impressive. I have to take this in for a while. πŸ‘

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jim
          last edited by

          load 'sketch_talk.rb'
          Error; #<LoadError; C;/Program Files/Google/Google SketchUp 7/Plugins/sketch_talk.rb;4;in `load'; No such file to load -- /r/sketch_talk_classes.rb>
          C;/Program Files/Google/Google SketchUp 7/Plugins/sketch_talk.rb;4
          

          Hi

          1 Reply Last reply Reply Quote 0
          • M Offline
            MartinRinehart
            last edited by

            @jim said:

            [code]load 'sketch_talk.rb'
            Error: #<LoadError: C:/Program Files/Google/Google SketchUp 7/Plugins

            Jim,

            Make a dir that's very handy. Mine's C:\r. Extract to there. In RC load "/r/sketch_talk.rb"

            Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jim
              last edited by

              Maybe, but that won't solve the problem of the missing sketch_talk_classes.rb file. (which I should have mentioned, sorry.)

              Hi

              1 Reply Last reply Reply Quote 0
              • M Offline
                MartinRinehart
                last edited by

                @jim said:

                Maybe, but that won't solve the problem of the missing file. (which I should have mentioned, sorry.)

                Oh, dear. I hard coded my own path.

                May be working now.

                Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                1 Reply Last reply Reply Quote 0
                • tbdT Offline
                  tbd
                  last edited by

                  cool. maybe it can extend my SME and have a more visual interface to it (non IT people are kinda scared by command line πŸ˜‰ )

                  SketchUp Ruby Consultant | Podium 1.x developer
                  http://plugins.ro

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    MartinRinehart
                    last edited by

                    @unknownuser said:

                    cool. maybe it can extend my SME

                    Need a link to some word of explain.

                    SketchTalk for you will be about 5 minutes of looking at the code.

                    Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                    1 Reply Last reply Reply Quote 0
                    • tbdT Offline
                      tbd
                      last edited by

                      SME is more like a visual editor for SketchTalk - a way to create ruby scripts using simpler, English like, words.

                      each command (box in UI) is a method that can be used and reused to do simple tasks. by combining it, like LEGO, you can create different repetitive tasks that speed up the workflow.

                      SME is another project that I will open source soon, so anyone can improve on it.

                      SketchUp Ruby Consultant | Podium 1.x developer
                      http://plugins.ro

                      1 Reply Last reply Reply Quote 0
                      • Mike LuceyM Offline
                        Mike Lucey
                        last edited by

                        Hi Guys,

                        Thanks Martin, this looks very interesting to a Rubyphobic like me πŸ˜„ Maybe I am wrong, but it looks to me that a non programmer can start to understand programming by mean of 'SketchUp to Ruby via Reverse Engineering'! Is this correct?

                        Mike

                        Support us so we can support you! Upgrade to Premium Membership!

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          MartinRinehart
                          last edited by

                          @mike lucey said:

                          this looks very interesting to a Rubyphobic like me

                          If you're good w/Sketchup, Mike, just turn to Chapter 11. You never know until you try. You might become Rubyphilic.

                          Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            mics_54
                            last edited by

                            Martin is there a guide to the previous 10 chapters somewhere?

                            Can you define "good with Sketchup"?

                            1 Reply Last reply Reply Quote 0
                            • pilouP Offline
                              pilou
                              last edited by

                              @unknownuser said:

                              is there a guide to the previous 10 chapters somewhere?

                              Seems you can find it here (and then click the middle icon page bottom for begin... πŸ˜‰

                              Does we can call that a "recorder" of actions ruby?

                              The very diffult thing was to find the SketchTalk itself πŸ˜‰
                              Why not to put it in the first post ❓

                              Some minutes after πŸ˜’
                              Ah damned that is not a recorder 😳 πŸ˜„

                              Frenchy Pilou
                              Is beautiful that please without concept!
                              My Little site :)

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                MartinRinehart
                                last edited by

                                @mics_54 said:

                                Martin is there a guide to the previous 10 chapters somewhere?

                                The tutorial TOC lists tools covered and keyboard shortcuts for every chapter. If you expand the details you get titles of (which link to) each major section.

                                http://www.MartinRinehart.com/models/tutorial/tutorial_toc.html

                                @mics_54 said:

                                Can you define "good with Sketchup"?

                                There's a screenshot of a quarter circle of oval columns at the end of the Qrotate (Rotate, with the keyboard shortcut emphasized) tool section. If you can duplicate this without looking at the hint that follows, you are VERY good with SketchUp. If the hint that follows makes sense and you can make an oval column, you are good with SketchUp.

                                http://www.MartinRinehart.com/models/tutorial/tutorial_04.html#qrotate

                                Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  MartinRinehart
                                  last edited by

                                  @unknownuser said:

                                  The very difficult thing was to find the SketchTalk itself πŸ˜‰
                                  Why not to put it in the first post

                                  If you just DL SketchTalk without looking at the SketchTalk by Example page, you won't have a clue. (First European explorer finds a banana. Bites. Terrible! Didn't know that you had to peel the thing.)

                                  There are isolated bits of SketchTalk (the "mc" command is way better than Move/Copy) that stand on their own, but not many. It's really only good if you can add what you need when you need it. My cabinet example needed the "none" command.

                                  So I added this trivial function:

                                  
                                  def none()
                                      Sketchup.active_model().
                                          selection().clear()
                                  end # of none()
                                  
                                  

                                  If you know a wee bit of the Ruby API, and where, in SketchTalk, to put that function, that's a trivial add. SketchTalk wants you to know enough to add simple bits to meet your own needs, so I'm deliberately steering you into the tutorial to learn a little (it only takes a little) Ruby and Ruby API.

                                  If you go back to the bottom of SketchTalk by Example you'll see that I took your advice, partially.

                                  Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    carloshmejia
                                    last edited by

                                    @martinrinehart said:

                                    SketchTalk is a layer between the SketchUp Ruby API and the model. It lets non-programmers use the Ruby Console for modeling. Then the non-programmers can gather their commands in a file; save the file with a ".rb" extension and, almost by accident, have written a program. Programmers can extend SketchTalk easily. It's described here:

                                    http://www.MartinRinehart.com/models/tutorial/sketch_talk_by_example.html

                                    Martin, I've being reading you Edges to Rubies Tutorial. It is wonderful, thank you.

                                    When I get chapter 11 I downloaded from the tutorial packages. Unfortunately the gem that comes with it is not sketch_talk.rb but martins_sketch_talk2. As a consequence your commands are not working as they are looking for sketch_talk.rb. I changed the ruby name on your instructions but it seems that the version 2 does not recognize them.

                                    Could you please help me to find the original version of sketch_talk.rb?

                                    Thank you again for your valuable Tutorial and help.

                                    Regards, Carlos H. Mejia

                                    1 Reply Last reply Reply Quote 0
                                    • TIGT Offline
                                      TIG Moderator
                                      last edited by

                                      I think that Martin is no longer active on this site...

                                      Did you look here ?
                                      http://www.martinrinehart.com/models/tutorial/downloads.html

                                      Remember that it is all a decade old !

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • 1 / 1
                                      • First post
                                        Last post
                                      Buy SketchPlus
                                      Buy SUbD
                                      Buy WrapR
                                      Buy eBook
                                      Buy Modelur
                                      Buy Vertex Tools
                                      Buy SketchCuisine
                                      Buy FormFonts

                                      Advertisement