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

    [Plugin] jf_get_dimensions.rb

    Scheduled Pinned Locked Moved Plugins
    61 Posts 21 Posters 68.0k Views 21 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.
    • B Offline
      Ben Ritter
      last edited by

      Jim, thank you for sharing.

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

        2010-06-24_092943.jpg

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          In SketchUp when it rounds of a value it prefix it with a tilde ~.
          If the lenght is 10.522221 and your model units are set to display only two decimals, SU will display that as "~ 10.52"

          Thomas Thomassen — SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

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

            The problem is that the plugin can't recognize SketchUP's circles - it shows different sizes for x and y. Here is the old plugin:

            2010-06-24_095545.jpg

            1 Reply Last reply Reply Quote 0
            • B Offline
              Ben Ritter
              last edited by

              Jim, thank you.

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

                @ben ritter said:

                Jim, thank you.

                You're welcome.
                @dedmin said:

                The problem is that the plugin can't recognize SketchUP's circles - it shows different sizes for x and y. Here is the old plugin:

                This knows nothing of circles, or any other actual geometry. It only reports the BoundingBox dimensions adjusted for rotation.

                Dave, that is the only way I can reproduce the results. And it makes sense (to me, anyway) that an odd-sided circle has differing dimensions due to the segments being non-symmetrical.

                Hi

                1 Reply Last reply Reply Quote 0
                • Dave RD Offline
                  Dave R
                  last edited by

                  I get the same results as dedmin if I drag out the radius of the circle off axis or if I use an odd number (25) of sides for the circle instead of an even number. On the other hand, with the radius dragged out on axis and an even number of sides, I get the same value for x and y even with Precision set to 0.000001mm it is the same value. Those results are all understandable since the plugin is reporting the size of the bounding box.

                  Etaoin Shrdlu

                  %

                  (THERE'S NO PLACE LIKE)

                  G28 X0.0 Y0.0 Z0.0

                  M30

                  %

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

                    I see. Thanks for the explanation. This SketchUp "geometry" is becoming a big problem for me. To bad, but I have to move to other more precise software.

                    1 Reply Last reply Reply Quote 0
                    • thomthomT Offline
                      thomthom
                      last edited by

                      Sounds like you might need a NURBS modeller - one that understand circles.
                      Bonzai or Rhino comes to mind.

                      Thomas Thomassen — SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

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

                        Rhino is my choice - the new version 5 is very promising. Gonna miss SketchUp's components, FredoScale and the community!

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

                          Here is a new version that displays the dimensions on the status bar
                          Screen.png

                          Made by a russian guy called 'newsposting'
                          GetDimensions.rb

                          1 Reply Last reply Reply Quote 0
                          • mitcorbM Offline
                            mitcorb
                            last edited by

                            Hi, dedmin:
                            Can you point to the source of the Russian guy's plugin?

                            I take the slow, deliberate approach in my aimless wandering.

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

                              Because this particular short code 'sorts' the three dimensions then the 'thickness' is always the least of them and the 'length' always the greatest and the 'width' is what's left over.
                              Be aware that it does not return the X/Y/Z dimensions - these would be dims[1], dims[0] and dims[2] respectively IF dims.sort! were to be omitted... 🤓

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • Dave RD Offline
                                Dave R
                                last edited by

                                For my use I'm not so worried about which is X, Y or Z. Thickness is generally the lowest value and length is usually (although not always) the longest dimension.

                                This new version puts a menu entry in the Tools menu but does not display dimensions anywhere for my selected component. Doesn't work on groups either.

                                Etaoin Shrdlu

                                %

                                (THERE'S NO PLACE LIKE)

                                G28 X0.0 Y0.0 Z0.0

                                M30

                                %

                                1 Reply Last reply Reply Quote 0
                                • N Offline
                                  newsposting
                                  last edited by

                                  Thank dedmin, that upload changed plugin. I looked at the comments in the forum and would immediately respond.

                                  1. I did not change the algorithm for determining the length, width and height, and left it in its original form, only changed the location of information display.

                                  2. Call plugin from the menu is not convenient, since after a mouse movement information is lost. But it is very convenient to assign a hot key, such as (W), and using the command Select, selected element, press W, and the information appears at the bottom, select the next element, and then press W again appear at the bottom of the data about the object. As for me it is very convenient. In this Select command is not disabled, which is also very convenient.

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

                                    Sorry, I didn't check it by myself - there were no SketchUP installed. This version works by a shortcut - You assign a shortcut to this plugin and when select group or component press the shortcut - You see the dimensions in the status bar - as soon as You move the mouse they are gone. Pretty useful actually.

                                    1 Reply Last reply Reply Quote 0
                                    • Dave RD Offline
                                      Dave R
                                      last edited by

                                      There's a big difference. Thank you for the explanation.

                                      Etaoin Shrdlu

                                      %

                                      (THERE'S NO PLACE LIKE)

                                      G28 X0.0 Y0.0 Z0.0

                                      M30

                                      %

                                      1 Reply Last reply Reply Quote 0
                                      • N Offline
                                        newsposting
                                        last edited by

                                        Hi, all.

                                        This, I modified the plugin Get Dimensions. If you have any questions I can answer.

                                        1 Reply Last reply Reply Quote 0
                                        • N Offline
                                          newsposting
                                          last edited by

                                          I upgraded the plugin, and now SketchUp automatically show the dimensions, without click menu item and hotkey, and this feature can be disabled if it interferes.

                                          Download link:
                                          Dimensions Tool

                                          Menu:
                                          Tools > Dimensions Tool > Get Dimensions - old functional
                                          Tools > Dimensions Tool > Auto Display Dimensions - checked menu item, which switch auto get dimensions functionality after select object.

                                          P.S. Let me know if you need to modify the algorithm and move plugin to another menu for the convenience.

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

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

                                            Advertisement