sketchucation logo sketchucation
    • 登入
    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!
    🔌 Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    [Plugin] Center of Gravity

    已排程 已置頂 已鎖定 已移動 Plugins
    183 貼文 41 Posters 307.7k 瀏覽 41 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • PockocmocP 離線
      Pockocmoc
      最後由 編輯

      Hi 😄 !

      Well, it seems it is not recognized as a solid, because there is no "volume" entry in the Entity Info box.

      Here is a picture :

      http://img15.hostingpics.net/pics/522313Prot3.png

      Thank you.

      Pock'

      1 條回覆 最後回覆 回覆 引用 0
      • PockocmocP 離線
        Pockocmoc
        最後由 編輯

        Oh, and even with a simple cube, (wich is solid) it does the same : no weight...

        1 條回覆 最後回覆 回覆 引用 0
        • TIGT 離線
          TIG Moderator
          最後由 編輯

          What version do you have ?
          It should be v1.7 from the SketchUcation PluginStore ?
          It's 3 years old but works on newer SketchUps anyway...

          If you run it with the Ruby Console open are there any error messages ?

          What settings are you using ?

          What is getting reported exactly ?

          Obviously the object's size versus the chosen density units can cause small objects to be reported as 0...
          A small 'blade' probably needs to be in g/cm³ or similar...

          Here's what I get with a component cube with protruding numerals [v2016].
          It's a but over 1 m³ with a density of 2000 kg/m³ at the default 1% accuracy setting it returns a true volume in m³ and a weight in kg...
          A much smaller [scaled] version reports '0' when the overly large units misapplied, but with g/cm³ it's fine...

          Can you post a simple SKP that has issues so I can test it...


          Capture.PNG


          Capture1.PNG

          TIG

          1 條回覆 最後回覆 回覆 引用 0
          • BoxB 離線
            Box
            最後由 編輯

            It sounds like you may be creating component, but failing to tick the box that replaces the raw geometry with the component.
            If there is no bounding box around your object it is just raw geometry, see if the component is in the component browser for you ready to use.

            1 條回覆 最後回覆 回覆 引用 0
            • PockocmocP 離線
              Pockocmoc
              最後由 編輯

              I am so stupid 😒 ... you are right TIG, it was because of the units, obviously! The blade weights 42 grams, so (0.0)42 Kg .

              http://img15.hostingpics.net/pics/610277poidsnonmasse.png

              Thank you for all.

              1 條回覆 最後回覆 回覆 引用 0
              • H 離線
                hute_zhaw
                最後由 編輯

                Hi Folks

                I just installed this plugin into SketchUp 2017. It doesn't work as expected for me. The find CofG still works fine as far as I can tell but the Composit CofG returns a ruby error:

                Error; #<TypeError; reference to deleted Group>
                /Users/hute/Library/Application Support/SketchUp 2017/SketchUp/Plugins/CofGravity.rb;670;in `entities'
                /Users/hute/Library/Application Support/SketchUp 2017/SketchUp/Plugins/CofGravity.rb;670;in `block in do_composite'
                /Users/hute/Library/Application Support/SketchUp 2017/SketchUp/Plugins/CofGravity.rb;669;in `each'
                /Users/hute/Library/Application Support/SketchUp 2017/SketchUp/Plugins/CofGravity.rb;669;in `do_composite'
                /Users/hute/Library/Application Support/SketchUp 2017/SketchUp/Plugins/CofGravity.rb;117;in `initialize'
                /Users/hute/Library/Application Support/SketchUp 2017/SketchUp/Plugins/CofGravity.rb;817;in `new'
                /Users/hute/Library/Application Support/SketchUp 2017/SketchUp/Plugins/CofGravity.rb;817;in `block in <top (required)>'
                SketchUp;1;in `call'
                

                Has anybody got a clue how to fix this? It is really a pretty cool plugin and would be a shame if it became unusable.

                1 條回覆 最後回覆 回覆 引用 0
                • TIGT 離線
                  TIG Moderator
                  最後由 編輯

                  Thanks for the bug-report.
                  I suspect that this is a glitch in the way v2017 handles exploded entities.
                  I'll investigate and fix it...

                  TIG

                  1 條回覆 最後回覆 回覆 引用 0
                  • TIGT 離線
                    TIG Moderator
                    最後由 編輯

                    Here's v2.0 http://sketchucation.com/pluginstore?pln=CofG Its coding is now compatible with v2017 and it is also signed for use in v2016/v2017 in any loading-policy.

                    TIG

                    1 條回覆 最後回覆 回覆 引用 0
                    • H 離線
                      hute_zhaw
                      最後由 編輯

                      Outstanding work TIG, thanks that was quick, I can confirm it works after the upgrade of the plug-in.

                      Cheers

                      1 條回覆 最後回覆 回覆 引用 0
                      • J 離線
                        jbkbm
                        最後由 編輯

                        The plugin does not seem to be able to detect hollow spaces. Am I doing something wrong? I am trying to find the CoG of steel assemblies but when it calculates the weight, it includes the space between plates and gives me a number much higher than the actual weight.
                        http://imgur.com/a/bIITC

                        1 條回覆 最後回覆 回覆 引用 0
                        • TIGT 離線
                          TIG Moderator
                          最後由 編輯

                          Your image attachment isn't showing.
                          An object needs to be a sensibly formed 'solid' - as reported in Entity Info.
                          Otherwise results can be flaky...
                          'Hollows' are accounted for, if it's a proper solid...

                          If you attach your SKP we can look at it...

                          TIG

                          1 條回覆 最後回覆 回覆 引用 0
                          • L 離線
                            lsorrentino
                            最後由 編輯

                            Hello All, hello TIG,
                            I want to calculate the center of gravity of a small magnet, but the calculation always report volume = 0 and eventully weight = 0.

                            The plugin works perfectly on my pc with larger objects, the density is 7.6 g/cm3, I'm a newbie with sketchup in general, I'm probably doing something wrong 😞

                            Luca


                            sketchup file


                            screenshot


                            result

                            1 條回覆 最後回覆 回覆 引用 0
                            • TIGT 離線
                              TIG Moderator
                              最後由 編輯

                              It must be a rounding issue.
                              The object looks like it has no volume to SketchUp, therefore no weight.

                              I'll investigate...

                              TIG

                              1 條回覆 最後回覆 回覆 引用 0
                              • TIGT 離線
                                TIG Moderator
                                最後由 編輯

                                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 條回覆 最後回覆 回覆 引用 0
                                • L 離線
                                  lsorrentino
                                  最後由 編輯

                                  Wow, very interesting. Thank you very much!

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • TIGT 離線
                                    TIG Moderator
                                    最後由 編輯

                                    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 條回覆 最後回覆 回覆 引用 0
                                    • L 離線
                                      lsorrentino
                                      最後由 編輯

                                      Thank you very much, I will use it tomorrow!

                                      Luca

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • L 離線
                                        lsorrentino
                                        最後由 編輯

                                        It obviously works!!!

                                        Thank you very much TIG, extremely useful plugin.

                                        Luca


                                        OK

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • L 離線
                                          lsorrentino
                                          最後由 編輯

                                          😞

                                          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 條回覆 最後回覆 回覆 引用 0
                                          • L 離線
                                            lsorrentino
                                            最後由 編輯

                                            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 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 9
                                            • 10
                                            • 4 / 10
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement