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

    [Plugin] Center of Gravity

    Scheduled Pinned Locked Moved Plugins
    183 Posts 41 Posters 297.6k Views 41 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 Offline
      TIG Moderator
      last edited by

      Yes, I see it.
      It was never intended for such small objects.
      It rounds to the nearest cu", so your small object appears to have no volume !
      I'll look at a way of adjusting it...

      TIG

      1 Reply Last reply Reply Quote 0
      • L Offline
        lsorrentino
        last edited by

        Wow, very interesting. Thank you very much!

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

          Here's v3.0 https://sketchucation.com/pluginstore?pln=CofG It now reports the Volume/Weight of very small objects with more dp etc...

          TIG

          1 Reply Last reply Reply Quote 0
          • L Offline
            lsorrentino
            last edited by

            Thank you very much, I will use it tomorrow!

            Luca

            1 Reply Last reply Reply Quote 0
            • L Offline
              lsorrentino
              last edited by

              It obviously works!!!

              Thank you very much TIG, extremely useful plugin.

              Luca


              OK

              1 Reply Last reply Reply Quote 0
              • L Offline
                lsorrentino
                last edited by

                😞

                Other little thing I can't understand.

                The little magnets of my previous post goes attached to a wood base that according to sketchup is 4500 mm3, but calculated by CoG is 4000.

                The volume of the magnet is ok regardless is far little than the wood base.

                Bye,
                Luca


                s1


                s2


                sk1

                1 Reply Last reply Reply Quote 0
                • L Offline
                  lsorrentino
                  last edited by

                  My feeling is that if the volume is only mantissa, ie 0.04555 cm3 works good, when volume is ie 4.75 cm3 decimal part is truncated.

                  Luca

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

                    Must be a glitch somewhere in the 'rounding'...
                    I'll fix it...

                    TIG

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

                      Here's v3.1 https://sketchucation.com/pluginstore?pln=CofG The rounding glitch on some small values is now fixed.
                      The Volume/Weight now shown with between 1dp and 4dp, suppressing trailing zeros beyond .0 as necessary.

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • L Offline
                        lsorrentino
                        last edited by

                        It works!

                        Thank you very much,
                        Luca

                        1 Reply Last reply Reply Quote 0
                        • sketchartist023S Offline
                          sketchartist023
                          last edited by

                          Mine does not show up with the added component information. It just turnes the solid into a bunch of layers (horizontal lining). SU 8 Pro windows 7 64bit


                          Capture.PNG

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

                            Version 8 is by now pretty much unsupported, but it should still work.
                            If you have the Ruby Console open what errors do you see when it fails ?
                            It's clearly doing its temporary slicing to get the centroid... but not completing...

                            How big is this object ?

                            Can you upload the SKP you are having issues with...

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • sketchartist023S Offline
                              sketchartist023
                              last edited by

                              @tig said:

                              Version 8 is by now pretty much unsupported, but it should still work.
                              If you have the Ruby Console open what errors do you see when it fails ?
                              It's clearly doing its temporary slicing to get the centroid... but not completing...

                              How big is this object ?

                              Can you upload the SKP you are having issues with...

                              TY for the quick response 😄
                              So, the console shows in the attachment.
                              It initializes, goes through the steps, and gets to call.
                              Or looks like ruby reads up maybe idk 😛

                              The skp is attached also 😄 Thank you for helping! I notice the ruby icon is not right also, so is it possible it is a ruby issue with SU8 atm?


                              rubyConsole.PNG


                              NAMEEXAMPLE.skp

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

                                Can you please post the top half of the error message [or even better expand the RC window and attach the whole error].
                                Without all of it, the cryptic second half is somewhat useless...

                                PS: I confirm that your SKP works fine in v2017/v2018 so it's probably a v8 glitch where making it compatible for the last half dozen updates generated an error in very old ones, like v8.
                                Unfortunately I don't have v8 loaded any more, but I can try and see what the RC error is, make some tweaks that maintain the current versions' usage and PM you that fixed RB to try and see if that works for you...
                                If so I'll then republish it...

                                TIG

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

                                  PS: I'd still like to see the full v8 error, but I've also PM'd you an older version of the RB, which I am hopeful will work in v8 for you...

                                  TIG

                                  robertWanR 1 Reply Last reply Reply Quote 0
                                  • Z Offline
                                    zstadel
                                    last edited by

                                    TIG please help!

                                    The Center of Gravity tool works great, but I can't get Composite C of G to work.

                                    I select two C of G groups,
                                    then I go to Extensions>C of G...>Composite C of G
                                    and it looks as though another group is generated, but it's empty

                                    Running SketchUp Pro 17.2.2554 on MacOS 10.13.4

                                    Thanks for any help you can offer
                                    Zack


                                    1.png


                                    2.png


                                    3.png

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

                                      Works fine for me !
                                      Your objects are quite small and have a small volume/weight.
                                      I'm wondering if the two CofG's combined have zero values ?
                                      If you retry with the Ruby Console open are there any error messages ?
                                      If you try with more appropriate settings in the dialog does it improve ?
                                      What version of CofG are you using ?
                                      The most up to date one from the PluginStore ??

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        auvergnemobois
                                        last edited by

                                        Capture.JPGHello, I have a problem With the same component, I get 2 different volumes and a different center of gravity depending on the position of the component ??

                                        j'ai un soucis. Avec le même composant, j'obtiens 2 volumes différents et un centre de gravité différent suivant la position du composant ??

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

                                          Change the axes on the rotated component so the blue axis is up. Make it unique before doing this so as not to affect the other one.

                                          Etaoin Shrdlu

                                          %

                                          (THERE'S NO PLACE LIKE)

                                          G28 X0.0 Y0.0 Z0.0

                                          M30

                                          %

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

                                            What level of accuracy are you using ?
                                            If it's a solid it has no affect, but if your object is a non-solid [like this one] then it takes a series of horizontal slices through the form, and accumulates those areas to arrive at an approx volume - the more slices the more accuracy, however if it does slices that just miss some parts of some elements, then their assumed volume is less.
                                            It wasn't really intended for 'stick' assemblies, as potentially a significant part of some horizontal sticks could be overlooked.
                                            Laying your non-solid assembly 'flat' on the ground would probably give the most accurate result, since every 'stick' then gets sliced evenly and only a tiny sliver might get missed...
                                            Whereas 'solid' objects will have a set volume or even pseudo-solids will approximate well too...
                                            If you were to explode all of the sub-component parts and intersect them together, and then run a 'solid' tool on the main container, then you should find them to be solid, and the Entity Info volume is then used in CofG...
                                            Such 'solid' fixer tools include my 'SolidSolver' and thomthom's 'SolidInspector' - which are available from the SketchUcation PluginStore...

                                            TIG

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

                                            Advertisement