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

    [Plugin] Center of Gravity

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

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

                              TIG

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

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

                                  It works!

                                  Thank you very much,
                                  Luca

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • sketchartist023S 離線
                                    sketchartist023
                                    最後由 編輯

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

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

                                        @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 條回覆 最後回覆 回覆 引用 0
                                        • TIGT 離線
                                          TIG Moderator
                                          最後由 編輯

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

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

                                            Advertisement