• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

SketchUp-Ruby Resources

Scheduled Pinned Locked Moved Developers' Forum
29 Posts 16 Posters 119.9k Views
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.
  • J Offline
    Jim
    last edited by Jim 31 May 2008, 17:02

    Official Google Sketchup API Documentation

    • SketchUp API Blog
    • Google SketchUp API Home (Google Code)
    • Google SketchUp Developers Group (Google Groups)
    • Google SketchUp API Documentation (Reference)

    Ruby Operator Precedence

    The reserved words and, or and not have a lower precedence than &&, || and !. The tricky part is that their precedence is lower than the assignment operator = .

    a = false or true evalualtes to ( a = false) or true.
    You probably meant one of:
    a = (false or true)
    a = false || true

    Avoid using the typename method

    In this discussion, user AlexMozg presents evidence that avoiding the object.typename can give your script a considerable performance increase.

    Instead, use object.is_a? Class::Type.

    He also says in a model that is less than 10 MB, there may not be a substantial increase, but for very large models the speed increase is considerable.

    Installing Extensions

    • How to find the Plugins folder?
      Here's a method that tells you right where your version of SketchUp is looking for extensions. Copy and paste the code into the Window > Ruby Console dialog, and press ENTER. It works for all versions of SketchUp, and on all operating systems, too.
    
    Sketchup.find_support_file("Plugins")
    
    

    http://www.sketchucation.com/forums/scf/download/file.php?id=22479

    And in my case the location to install plugins is C:/Program Files/Google/Google SketchUp 7/Plugins

    Links to important and notable Dev Forum posts past and present. Let me know if there is a topic that should be included here.

    • Building Ruby C Extensions compatible with SketchUp

    • Set.insert vs array << x unless array.include?(x)

    • How to enable thumbnail preview (windows)

    • Google SketchUp Ruby API - What's New in SketchUp 7.1

    • WebDialogs - The Lost Manual -- thomthom (Nov 2009)

    • Report Ruby Bugs and Documentation issues in this thread. The SketchUp developers are aware of, and read it.

    • [Code] Real UV from UVHelper data - thomthom (Oct 2009)

    • State of Observers — 19 July 2009

    • [Code] UnicodeEx - Sketchup + Character Encoding (thomthom)

    • [url=http://forums.sketchucation.com/viewtopic.php?f=180&t=13666:3tvu9trw]SketchUp RUBY API Wishlist (way of coding wishes, please)[/url:3tvu9trw]

    • WebDialogs: [url=http://forums.sketchucation.com/viewtopic.php?f=180&t=22491:3tvu9trw]How to Hide the Scrollbars[/url:3tvu9trw]

    • [url=http://forums.sketchucation.com/viewtopic.php?f=180&t=10142:3tvu9trw]SketchUp-Ruby Resources[/url:3tvu9trw]

    • [url=http://forums.sketchucation.com/viewtopic.php?f=180&t=16909:3tvu9trw]Must Have Ruby Plugins - Visual Index[/url:3tvu9trw]

    • [url=http://forums.sketchucation.com/viewtopic.php?f=180&t=16792:3tvu9trw]< SCF Toolbars Authors >[/url:3tvu9trw]

    • [url=http://forums.sketchucation.com/viewtopic.php?f=180&t=16164:3tvu9trw]Collaborative Effort - Ruby Template, RDoc, and Localization[/url:3tvu9trw]

    • [url=http://forums.sketchucation.com/viewtopic.php?f=180&t=12423:3tvu9trw]Word of warning to developers[/url:3tvu9trw]

    • [url=http://forums.sketchucation.com/search.php?keywords=code&terms=all&author=&fid=180&sc=1&sf=titleonly&sr=topics&sk=t&sd=d&st=0&ch=300&t=0&submit=Search:3tvu9trw]Ruby Forum Code Search[/url:3tvu9trw]

    SketchUp & Ruby Development Discussions

    • Rick's [url=http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=12423:3tvu9trw]Words of Warning[/url:3tvu9trw] - Important points to remember for writing plugins.
    • [url=http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=8997&start=0&st=0&sk=t&sd=a:3tvu9trw]How do you make plug-ins for sketchup[/url:3tvu9trw]
    • [url=http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=6818:3tvu9trw]What is needed to script?[/url:3tvu9trw]
    • [url=http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=4796:3tvu9trw]ruby dev environment[/url:3tvu9trw]
    • [url=http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=11160:3tvu9trw]Creating an API[/url:3tvu9trw]
    • [url=http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=12633:3tvu9trw]$ versus @[/url:3tvu9trw]
    • [url=http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=14608:3tvu9trw]Manipulating the InputPoint[/url:3tvu9trw]

    Ruby Editor Suggestions

    • [url=http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=13206:3tvu9trw]ConTEXT[/url:3tvu9trw] Editor w/Ruby Highlighting

    • [url=http://www.sketchucation.com/forums/scf/viewtopic.php?f=169&t=6903:3tvu9trw]Notepad++[/url:3tvu9trw] editor

    • Notepad++ AutoComplete files

      • by [url=http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=15875&p=123500:3tvu9trw]Didier Bur[/url:3tvu9trw]
      • by [url=http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=4796&p=25556#p111076:3tvu9trw]radhikari[/url:3tvu9trw]
    • [url=http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=13574&p=101153#p101153:3tvu9trw]EditPlus[/url:3tvu9trw] editor

    • RDE

    Ruby Challenges

    1. [url=http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=2107:3tvu9trw]UI.play_sound jukebox[/url:3tvu9trw] (RickW)
    2. [url=http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=13715:3tvu9trw]best fitting bounding box[/url:3tvu9trw] (Matt)

    Ruby Docs

    • [url=http://ruby-doc.org/:3tvu9trw]Ruby-doc.org[/url:3tvu9trw]

    • [url=http://www.ruby-doc.org/core/classes/Array.html:3tvu9trw]Arrays[/url:3tvu9trw]

    • [url=http://www.ruby-doc.org/core/classes/String.html:3tvu9trw]Strings[/url:3tvu9trw]

    • [url=http://www.ruby-doc.org/core/classes/Hash.html:3tvu9trw]Hashes[/url:3tvu9trw]

    • [url=http://www.ruby-doc.org/core/classes/Enumerable.html:3tvu9trw]Enumerable (module)[/url:3tvu9trw]

    • [url=http://www.ruby-doc.org/core/classes/IO.html:3tvu9trw]IO[/url:3tvu9trw]

    • [url=http://www.ruby-doc.org/core/classes/Time.html:3tvu9trw]Time[/url:3tvu9trw]

    Ruby Books

    • [url=http://www.autosketchup.com/:3tvu9trw]Automatic Sketchup[/url:3tvu9trw]
    • [url=http://rubybestpractices.com/:3tvu9trw]Ruby Best Practices[/url:3tvu9trw]
    • [url=http://www.sapphiresteel.com/The-Book-Of-Ruby:3tvu9trw]The Book of Ruby[/url:3tvu9trw]

    Extension Collections

    • [url=http://www.smustard.com/:3tvu9trw]Smustard(TM) - the Companion to Sketchup(TM)[/url:3tvu9trw]
    • [url=http://www.crai.archi.fr/RubyLibraryDepot/Ruby/RUBY_Library_Depot.htm:3tvu9trw]Ruby Library Depot[/url:3tvu9trw] Here are the contributions of the Ruby developers of the SketchUp community since 2004.
    • [url=http://www.pixero.com/:3tvu9trw]Jan Sandström[/url:3tvu9trw] (Pixero)
    • [url=http://www.tensile-structures.de/index.html:3tvu9trw]Soap Skin & Bubble[/url:3tvu9trw]
    • [url=http://errorinitus.de:3tvu9trw]Mario Pehle[/url:3tvu9trw] (azuby) under Software
    • [url=http://www.accustudio.com/index.php?option=com_remository&Itemid=88&func=select&id=23:3tvu9trw]Accustudio File Repository[/url:3tvu9trw] - appears to mirror the Ruby Library Depot.
    • [url=http://sketchuptips.blogspot.com/:3tvu9trw]SketchUp Plugins Blog[/url:3tvu9trw]

    Resources

    • [url=http://forums.sketchucation.com/viewtopic.php?f=180&t=26352:3tvu9trw]Ruby Scrambler Download[/url:3tvu9trw]

    Hi

    1 Reply Last reply Reply Quote 0
    • H Offline
      Heven7_floor
      last edited by 20 Jan 2009, 09:14

      Great Jim

      Your suggestion is usefully to every newer like me .

      Thanks 🎉

      1 Reply Last reply Reply Quote 0
      • W Offline
        watkins
        last edited by 20 Jan 2009, 12:23

        Dear Jim,

        Many thanks for all your hard work. It is greatly appreciated.

        Kind regards,
        Bob

        1 Reply Last reply Reply Quote 0
        • S Offline
          sepo
          last edited by 23 Jan 2009, 19:10

          Just found this depository of Plugins for SU. There a lot of known ones but nevertheless mayby useful.
          http://www.accustudio.com/index.php?option=com_remository&Itemid=88&func=select&id=23

          1 Reply Last reply Reply Quote 0
          • O Offline
            Oaht
            last edited by 10 Feb 2009, 10:10

            Thanks for your effort. Cheers 👍

            1 Reply Last reply Reply Quote 0
            • V Offline
              vashstamp3de
              last edited by 17 May 2009, 12:30

              I hope this helps...(and not violating someone 😞 )

              410 Gone

              favicon

              (xoomer.virgilio.it)

              Good Luck!

              1 Reply Last reply Reply Quote 0
              • R Offline
                remus
                last edited by 17 May 2009, 16:59

                I imagine a link to contact each plugins developer would be appreciated by the authors 👍

                http://remusrendering.wordpress.com/

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Pauline01
                  last edited by 12 Oct 2009, 13:01

                  thx again it's very very nice!

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    Align
                    last edited by 8 Nov 2009, 03:15

                    thanx for this awesome thread! i give it a 10

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by 8 Nov 2009, 10:44

                      Jim, maybe include the path to install plugins on Mac as well. That one seem to be the most confusing amongst users it seems.

                      Thomas Thomassen — SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        RickW
                        last edited by 11 Jan 2010, 21:27

                        @vashstamp3de said:

                        I hope this helps...(and not violating someone 😞 )
                        http://xoomer.virgilio.it/kites/programmi/grafica/sketcplugins.html
                        Good Luck!

                        Just point the Windowizer link to Smustard, please. It currently points to a broken link on RLD.

                        RickW
                        [www.smustard.com](http://www.smustard.com)

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by 9 May 2010, 15:29

                          Might be worth noting that definition names can't be trusted to be unique: http://forums.sketchucation.com/viewtopic.php?f=11&t=28094

                          Thomas Thomassen — SketchUp Monkey & Coding addict
                          List of my plugins and link to the CookieWare fund

                          1 Reply Last reply Reply Quote 0
                          • thomthomT Offline
                            thomthom
                            last edited by 8 Sept 2010, 10:07

                            Very nice list Dan!

                            @dan rathbun said:

                            Ruby Best Practices, by Gregory T. Brown
                            ** PDF
                            http://sandal.github.com/rbp-book/pdfs/rbp_1-0.pdf

                            This one looks very interesting.

                            Thomas Thomassen — SketchUp Monkey & Coding addict
                            List of my plugins and link to the CookieWare fund

                            1 Reply Last reply Reply Quote 0
                            • Dan RathbunD Offline
                              Dan Rathbun
                              last edited by 8 Sept 2010, 10:35

                              @thomthom said:

                              Very nice list Dan!

                              Thanks.. (but I didn't find all these myself.) I had it posted over at GG, but it kept getting farther down the topic stack. Over here I know right where it is, and can format it.

                              @thomthom said:

                              This one looks very interesting.

                              Jim found that one.

                              P.S. - @Jim your free to cut and paste anything from here to the top of the thread.

                              I'm not here much anymore.

                              1 Reply Last reply Reply Quote 0
                              • Dan RathbunD Offline
                                Dan Rathbun
                                last edited by 29 Dec 2010, 05:48


                                UPDATES / ADDITIONS (in this topic.)


                                Ruby Interpreter DLLs (Win32)

                                Edited Instructions to be more clear and precise.

                                Added DLL for:

                                • latest Ruby v 1.8.7 p330

                                RUBY PROGRAMMING REFERENCES - CHM format

                                Added CHMs for:

                                • latest Ruby v 1.8.7 p330* latest Ruby v 1.9.2 p136

                                I'm not here much anymore.

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  Jim
                                  last edited by 30 Oct 2011, 11:30

                                  This site has many videos of Ruby talks recorded at various Ruby Conferences - http://confreaks.net

                                  Some good stuff there - if you can find them...

                                  Hi

                                  1 Reply Last reply Reply Quote 0
                                  • R Offline
                                    rricon
                                    last edited by 18 Dec 2011, 04:23

                                    Hello,

                                    Where to find the .h file of msvcrt-ruby18.dll file ?

                                    Regards,

                                    1 Reply Last reply Reply Quote 0
                                    • Dan RathbunD Offline
                                      Dan Rathbun
                                      last edited by 18 Dec 2011, 07:54

                                      @rricon said:

                                      Where to find the .h file of msvcrt-ruby18.dll file ?

                                      In the source:
                                      ftp;//ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p287.zip

                                      I'm not here much anymore.

                                      1 Reply Last reply Reply Quote 0
                                      • Dan RathbunD Offline
                                        Dan Rathbun
                                        last edited by 29 Sept 2012, 02:29

                                        book: "Programming Ruby - The Pragmatic Programmer's Guide"
                                        Copyright © 2000 Addison Wesley Longman, Inc.

                                        ProgrammingRuby.zip
                                        Released under the terms of the Open Publication License V1.0.

                                        🤓

                                        I'm not here much anymore.

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          todd burch
                                          last edited by 24 Oct 2012, 16:48

                                          Chunky Bacon. I didn't see a link for Why's Poignant Guide to Ruby. A true classic.

                                          http://mislav.uniqpath.com/poignant-guide/book/chapter-1.html

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

                                          Advertisement