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!
    ⚠️ Update | Sketchucation Tools 5.0.8 released with licensing improvements and bugfixes Download

    Unit plugin not work in SU 7.1 ?

    Scheduled Pinned Locked Moved Developers' Forum
    17 Posts 6 Posters 2.5k Views 6 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.
    • J
      Jim
      last edited by

      Could you copy and paste this in the Ruby Console, and show the result?

      Sketchup.active_model.options.map{|o| o.name}
      
      

      It should look similar to this, but may be in your language:

      ["PageOptions", "SlideshowOptions", "NamedOptions", "UnitsOptions", "PrintOptions"]
      

      Hi

      1 Reply Last reply
      Reply Quote 0
      • kenK
        ken
        last edited by

        Yep, that what I get.

        Sketchup.active_model.options.map{|o| o.name}
        ["PageOptions", "SlideshowOptions", "NamedOptions", "UnitsOptions", "PrintOptions"]

        Ken

        Fight like your the third monkey on Noah's Ark gangway.

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

          Thanks Ken, I was hoping to see if a foreign language version used translated names for these.

          Maybe I should have just said that to begin with. πŸ˜„

          Hi

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

            I fell foul of something similar... When you call options you must do it by 'name' not 'index' and similarly for their values ? ❓

            TIG

            1 Reply Last reply
            Reply Quote 0
            • CadFatherC
              CadFather
              last edited by

              anyone out there willing to take this on?

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

                I added translation using the langhandler.rb that comes with Sketchup. I sent a copy to Matt, but he didn't respond. I guess it would be OK if I posted it.

                But I am not 100% sure that was the problem - I made some assumptions.


                toggle_units.rb


                rename to toggle_units.strings

                Hi

                1 Reply Last reply
                Reply Quote 0
                • kenK
                  ken
                  last edited by

                  Jim

                  Works great on my computer.

                  Thanks

                  Ken

                  Fight like your the third monkey on Noah's Ark gangway.

                  1 Reply Last reply
                  Reply Quote 0
                  • CadFatherC
                    CadFather
                    last edited by

                    mm..this is what i get:

                    Error Loading File toggle_units.rb
                    cannot convert nil into String

                    1 Reply Last reply
                    Reply Quote 0
                    • CadFatherC
                      CadFather
                      last edited by

                      anyone with the same problem?

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

                        You might need to rename the toggle_units.txt to toggle_units.strings and then move it to the Sketchup/Resources/your langauage/folder

                        Hi

                        1 Reply Last reply
                        Reply Quote 0
                        • CadFatherC
                          CadFather
                          last edited by

                          yes, already done yesterday - same error.. 😞

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

                            Will you try to load it from the Ruby Console and post the error?

                            load 'toggle_units.rb'

                            Hi

                            1 Reply Last reply
                            Reply Quote 0
                            • CadFatherC
                              CadFather
                              last edited by

                              got it Jim, it was something to do with the path to the icons - the ruby console is great but not when you forget its existence, Thanks! πŸ˜„

                              1 Reply Last reply
                              Reply Quote 0

                              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                              With your input, this post could be even better πŸ’—

                              Register Login
                              • 1 / 1
                              • First post
                                Last post
                              Buy SketchPlus
                              Buy SUbD
                              Buy WrapR
                              Buy eBook
                              Buy Modelur
                              Buy Vertex Tools
                              Buy SketchCuisine
                              Buy FormFonts

                              Advertisement