sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Loading Ruby Scripts

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    3 Posts 3 Posters 483 Views 3 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.
    • P Offline
      polarisman
      last edited by

      How exactly do you load a new ruby (.rb) file. I have tried copying some into the plugin's folder...some work...some do not. Just wondering if any one can lead me in the proper direction.

      Thanks - Tim

      1 Reply Last reply Reply Quote 0
      • D Offline
        dylan
        last edited by

        That is exactly what you do.
        Remember, some show up in the Plugins menu, some in Tools also Draw and Context click. It all depends on which Ruby you installed.
        Also remember, some of the Rubies with a toolbar will require you to go to Window/Preferences/Extensions to turn on their toolbar/icon.

        http://dmdarchitecture.co.uk/

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

          Hi Tim,

          As Dylan says, there can be one or more access points for a plugin (aka. script, ruby.) A script can add a menu-item to any of the available menus, it can add a sub-menu with multiple child Menu items, it can add a Toolbar accessible under the View > Toolbars menu, it can use a context (right-click) menu, and finally it can make itself available in the Windows > Preferences > Extensions dialog.

          Once you get the .rb file into the Plugins folder, the easiest way to load it is to close and restart SketchUp. If you don't want to close SketchUp, you can load the file by opening the Window > Ruby Console, and entering:

          load "script_name.rb"
          

          (but replacing "script_name.rb" with the filename of the .rb file you've installed.) This is also a good way to do it if you are having trouble with a script because you can see any error messages that would prevent the plugin from being loaded.

          Hi

          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