sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    โš ๏ธ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    Help with adding extension to Trimble's Extension Warehouse.

    Scheduled Pinned Locked Moved Developers' Forum
    9 Posts 5 Posters 609 Views 5 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.
    • renderizaR Offline
      renderiza
      last edited by

      Hi,

      Just recently got aproved for adding plugins to Extension Warehouse ๐Ÿ˜ but when I try adding one this error appears:

      RBZ Problem: Your extension must implement the SketchupExtension class.

      Can someone explain to me what is wrong with the following rbz found in this link?

      http://sketchucation.com/forums/viewtopic.php?f=323&t=52238

      Note: I have made the plugin to be an extension so that you can see it under Window > Preferences > Extensions.

      Any help will be appreciated! ๐Ÿ‘

      [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

      1 Reply Last reply Reply Quote 0
      • P Offline
        pballew
        last edited by

        Hi Renderiza,

        This error is because the SketchUp Extension Warehouse requires that you create and register your extension in your top-level .RB file, like this:

        my_extension = SketchupExtension.new("MyExtension", File.join("MyExtension", "loader.rb"))

        Set your name, description, version, creator, copyright properties here

        Sketchup.register_extension(my_extension, true)

        If you add that, your submission should work.

        Paul

        1 Reply Last reply Reply Quote 0
        • renderizaR Offline
          renderiza
          last edited by

          Hi,

          The problem was that I had a .rb named RND_0_Menu which was there to make some menus and then load the main .rb named RND_Animatex which then had all the code to register the extension. Sinse RND_Animatex wasn't the top-level .rb I was getting that error but I will fix that soon.

          Thank you for your help I really appreciate it!

          [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

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

            That won't work. ๐Ÿ˜’
            You need an RBZ file containing a rb and a subfolder.
            The 'extension_loader' rb that goes into the Plugins folder [and so it auto-loads] will be named say:
            xxxxxxxx.rb
            All that this particular file does is load/register your extension.
            And then a subfolder of rb/rbs files - which MUST also be called ' xxxxxxxx'.
            One of these files should be the 'menu_toolbar_loader' rb [with 'any name' allowed] which is loaded by xxxxxxxx.rb [potentially if its extension is 'checked'].
            In turn that file can also load all of the remaining main-code rb/bs files in its subfolder and also make its menus/toolbars/webdialogs etc... ๐Ÿ˜ฎ

            It's just some of the many EW rules... which can't be avoided. ๐Ÿ˜ž

            TIG

            1 Reply Last reply Reply Quote 0
            • renderizaR Offline
              renderiza
              last edited by

              Hi,

              I could not make it so that every plugin I made will share same sub-menu under plugins. ๐Ÿ˜•
              Tried even registering both RND_0_Menu and RND_Animatex as extensions but seem you can't have two under same .rbz file.

              Upon realizing this I decided to not put every plugin under same sub-menu and everything now works smoothly. I am awaiting approval for the plugin so fingers crossed.

              Here is final RBZ file just in case someone is interest...

              RND_Animatex v1.0.6.rbz

              Finally thanks to everyone that was helping me on this! ๐Ÿ‘

              [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

              1 Reply Last reply Reply Quote 0
              • renderizaR Offline
                renderiza
                last edited by

                I did it! ๐Ÿ˜

                All my plugins will appear under "Renderiza Tools" in the Plugins Menu and still be compatible with Extension Warehouse Rules.

                I looked at some of Chris Fullmer plugins to see how he did it and then tried does techniques to my plugins and it worked so THANKS Chris Fullmer! ๐Ÿ‘

                [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                1 Reply Last reply Reply Quote 0
                • Chris FullmerC Offline
                  Chris Fullmer
                  last edited by

                  Not a problem, glad it worked. I finally remade my menu scheme so as to remove the only global variable I had been using, and wrapped all my menus into my own developer module. Much cleaner now. Thanks to Dan for his examples of how to nicely wrap up scripts into a single developer module. Hopefully I did it right ๐Ÿ˜„

                  Chris

                  Lately you've been tan, suspicious for the winter.
                  All my Plugins I've written

                  1 Reply Last reply Reply Quote 0
                  • Dan RathbunD Offline
                    Dan Rathbun
                    last edited by

                    ROFL

                    I remember a time when you got real testy about cleaning up your plugins. ๐Ÿ˜‰

                    Glad you've seen the light. ๐Ÿ’ญ

                    I'm not here much anymore.

                    1 Reply Last reply Reply Quote 0
                    • Chris FullmerC Offline
                      Chris Fullmer
                      last edited by

                      I think we all have our shining moments, and I'm certainly no exception ๐Ÿ’š

                      Lately you've been tan, suspicious for the winter.
                      All my Plugins I've written

                      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