sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Point To Center

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    22 Posts 5 Posters 2.3k 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.
    • TIGT Online
      TIG Moderator
      last edited by

      Here's a quick arc/circle/polygon center point tool.
      Put the RB into the Plugins folder and restart SketchUp.
      It adds a new menu item if the selected object is one of those things, and then adds a guide-point at the center...
      ArcContextmenu.rb
      To open your Plugins folder you can copy/paste this snippet in the Ruby Console [PC]...
      UI.openURL("file:///#{Sketchup.find_support_file('Plugins')}")
      For a newer version & MAC you can use...
      system("open #{Sketchup.find_support_file('Plugins').inspect}")

      TIG

      1 Reply Last reply Reply Quote 0
      • Joe WoodJ Offline
        Joe Wood
        last edited by

        Right on Tig, would that be better then the one offered by Chris? I really only need to find center of arcs, can't even remember wanting to find center of a circle.

        Joe Wood
        woodsshop.com/

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

          Chris's tool doesn't actually find the center of an arc unless you have exploded it, then it works backwards to work out the center of a possible arc from two of the [now] separate edges, which could have been before !

          So my version is probably the best for you.
          If you only want to find Arc centers it's fine - with one [arc-curve] selected the context-menu says "Point at Center of Arc".
          If it's a circle then it's actually an arc that loops back on itself in 360° - it then says "...of Circle".
          Because a polygon is really a special kind of circle that doesn't produce smoothed extrusions in that case it says "...of Polygon".

          But if you find yourself with some edges which were once an arc, then using Chris's tool will help...

          TIG

          1 Reply Last reply Reply Quote 0
          • Joe WoodJ Offline
            Joe Wood
            last edited by

            Hhmmm, trying to install that rb, went to SUp 2015 but don't see a Plugins folder, only a ifc plugins, and I don't see any other rb files in there?

            also I went to Preferences>Extensions and clicked on Install Extension, browsed to th Downloads folder but only see the other rb I downloaded yesterday. I dragged it out of downloads to my desktop but can't see it there either?


            1PlugIns.png

            Joe Wood
            woodsshop.com/

            1 Reply Last reply Reply Quote 0
            • Joe WoodJ Offline
              Joe Wood
              last edited by

              I see other rb in the Tools folder?


              2.png

              Joe Wood
              woodsshop.com/

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

                You can only install RBZ files using the Extension Manager dialog.
                These go into your user's Plugins folder...
                For such a simple RB you just put it directly into your Plugins folder.
                Your user's Plugins folder [in all newer SketchUp versions] is now 'hidden', and it's in your AppData tree.
                So that's why I gave you [what I thought were] clear instructions on how to open the Plugins folder using the Ruby Console...
                To reiterate... In SketchUp open the menu item Window > Ruby Console and paste the text in and press <enter>
                UI.openURL("file:///#{Sketchup.find_support_file('Plugins')}")
                Your Plugins folder will open and you then simply drop the RB into it...
                Restart SketchUp to auto-load the new RB file...

                TIG

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

                  Sorry if I was a bit terse - the unseasonal gales are blowing half my garden away !
                  Here's an RBZ equivalent to the previous RB file - I simply zipped the .rb file and changed its .zip to .rbz
                  Download this RBZ, then use the built-in Extension Manager's dialog's red-button to auto-install it...
                  ArcContextmenu.rbz

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • Joe WoodJ Offline
                    Joe Wood
                    last edited by

                    No terseness detected Tig!

                    we're almost there I think. I found the Preferences>Extensions, but don't see a red button??

                    Joe Wood
                    woodsshop.com/

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

                      Sorry, I'm keep forgetting your version of SketchUp predates Noah !

                      In the older SketchUp versions you install extensions' RBZ files using Window > Preferences [it opens a dialog] > Extensions [open that tab] > Install Extension... [a button - default-gray color]
                      Then you find the RBZ, OK... and it installs.

                      In newer SketchUp versions it's pretty much the same tool, but now it is accessed from Window > Extension-Manager [opens a dialog] and that dialog has a button saying 'Install Extension...' [and in that case it is colored red !]

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • Joe WoodJ Offline
                        Joe Wood
                        last edited by

                        I have the ArcContextmenu.rb,

                        do I need to rename it to rbz?

                        Joe Wood
                        woodsshop.com/

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

                          Luckily I have the patience of Job !

                          An RB file cannot just be renamed as an RBZ file.
                          I already gave you an RBZ version that was properly prepared [via zipping].
                          Have you downloaded that RBZ ?

                          Install that RBZ using the native 'install' button... as I've recently explained...

                          The RB version can only be installed using the alternative methods I initially outlined a day or two ago...
                          BUT for simplicity's sake I then gave you an RBZ version, and instructions on getting the 'install' button opened etc...

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • jujuJ Offline
                            juju
                            last edited by

                            @tig said:

                            Sorry, I'm keep forgetting your version of SketchUp predates Noah !

                            That's very funny (Joe Wood's on SU2015) considering Pilou insists people downsave files to SU6 for them to get help...

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

                            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