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

[Plugin] MENUS.rb

Scheduled Pinned Locked Moved Plugins
7 Posts 4 Posters 23.8k 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.
  • A Offline
    Alan Fraser
    last edited by 13 Nov 2007, 14:02

    This is a script by Max Coppolletta, based on Didier's menu loader. I've copied it here from the SU Ruby forum. It comprises MENUS.rb and a few support files, which you probably already have, which go into Plugins root, a couple that go into delauney...then an entire catalogue of rubies, renamed in capitals, that will unzip into a Scripts folder.


    MENUS_02.zip

    3D Figures
    Were you required to walk 500 miles? Were you advised to walk 500 more?
    You could be entitled to compensation. Call the Pro Claimers now!

    1 Reply Last reply Reply Quote 0
    • J Offline
      juju
      last edited by 19 Nov 2007, 04:42

      Thx Alan, will have alook and see which I prefer between this and the one Didier did originally.

      Save the Earth, it's the only planet with chocolate.

      1 Reply Last reply Reply Quote 0
      • B Offline
        boofredlay
        last edited by 19 Nov 2007, 04:43

        Alan, there are many more scripts in that zip file. Does one need to load all of them for the Menus.rb to work properly? I would prefer to keep as few rubies in my plugin folder as possible.
        Thanks.

        http://www.coroflot.com/boofredlay

        1 Reply Last reply Reply Quote 0
        • A Offline
          Alan Fraser
          last edited by 19 Nov 2007, 04:43

          All but a couple of them go into a sub folder called Scripts, so they don't clutter the Plugins folder itself. MENUS.rb loads them, so you will get "No such file to load" errors if you simply delete them. However it's probably not that difficult to customise it to your own needs by deleting the files you don't need whilst having MENUS.rb open in a text editor and simply deleting the relevant file entry. Each one is separated by a line of chevrons, so it's a fairly straightforward task.

          3D Figures
          Were you required to walk 500 miles? Were you advised to walk 500 more?
          You could be entitled to compensation. Call the Pro Claimers now!

          1 Reply Last reply Reply Quote 0
          • J Offline
            juju
            last edited by 19 Nov 2007, 04:44

            Alan, will this work with SU6? Having the the sketchup.rb in the plugins folder causes some errors in SU6 (from what I understand), so it'll have to be removed. Also, some of those scripts are the older versions, I suppose it will be safe to replace them as long as the name is the same, right?

            Save the Earth, it's the only planet with chocolate.

            1 Reply Last reply Reply Quote 0
            • A Offline
              Alan Fraser
              last edited by 19 Nov 2007, 04:45

              Yes, if sketchup.rb is in there just delete it...as it's already in Tools.
              Regarding the older scripts; this is only a loader so, as you say, as long as you rename the newer version to match the existing one I don't see that there should be a problem. Alternately, you could edit MENUS.rb to load the newer version, but it's probably easier just to change the filename.

              3D Figures
              Were you required to walk 500 miles? Were you advised to walk 500 more?
              You could be entitled to compensation. Call the Pro Claimers now!

              1 Reply Last reply Reply Quote 0
              • C Offline
                CadFather
                last edited by 19 Nov 2007, 04:47

                you still need to pay attention to the menu lines in the scripts - always at bottom.

                suppose you have a road.rb (it's about time) and want to integrate it to menu.rb

                you will have to analyse the menu portion in road.rb, if it looks 'portable' (trial & error for me) copy the code (usually starts with 'if' and ends with 'end'). to menu.rb

                if you want to keep the plugins folder neat, you can place road.rb in the scripts folder, making sure the file location in menu.rb now looks like '**scripts/**road.rb'

                you then place a hash (#) at the beginning of every line of code in road.rb. that will disable the code and ensure you shall not find the menu item appearing in 2 different places.

                hope this is of help

                EDIT: if anyone has a list of scripts (fee and free) please let me know - i can then carry some trimming in my menu and post it (too much stuff).

                otherwise let me know which free plugin we should have as a must and i will write one new

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

                Advertisement