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

    [Plugin] C of G Reporter 1.3

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

      new error message :

      cofreporter
      Error: #<NameError: undefined local variable or method `cofreporter' for main:Object>
      (eval)

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

        @bertier said:

        new error message :
        cofreporter
        Error: #<NameError: undefined local variable or method `cofreporter' for main:Object>
        (eval)

        It's cof****g****reporter - you mistyped! 😒

        TIG

        1 條回覆 最後回覆 回覆 引用 0
        • B 離線
          Bertier
          最後由 編輯

          oops...

          1 條回覆 最後回覆 回覆 引用 0
          • B 離線
            Bertier
            最後由 編輯

            working but :

            CoG Report File:
            'F:\neo batitrad\Bar & Ka/console_CofG_Report.csv'
            Cannot be written - it's probably already open.
            Close it and try making the Report again...
            Exiting.
            nil

            and it's not open, cause it's not written yet !

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

              @bertier said:

              working but :
              CoG Report File:
              'F:\neo batitrad\Bar & Ka/console_CofG_Report.csv'
              Cannot be written - it's probably already open.
              Close it and try making the Report again...
              Exiting.
              nil
              and it's not open, cause it's not written yet !

              Try renaming the folder 'Bar & Ka' to 'Bar_Ka' - The '&' in the file_path might be the culprit ?
              Also is your model SKP really called 'console.skp' ?
              Try the version 1.2 which has more error messages, that might report what is really up...
              http://forums.sketchucation.com/viewtopic.php?p=278046#p278046

              TIG

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

                Here's v1.2 http://forums.sketchucation.com/viewtopic.php?p=278046#p278046
                with some extra error reporting to try and trap Bertier's reported cryptic error messages...

                TIG

                1 條回覆 最後回覆 回覆 引用 0
                • B 離線
                  Bertier
                  最後由 編輯

                  thank you TIG

                  I'll try this tonite, got to get the kids at their grand parents now.

                  where are you from ?

                  1 條回覆 最後回覆 回覆 引用 0
                  • Rich O BrienR 離線
                    Rich O Brien Moderator
                    最後由 編輯

                    It's a secret but there's a clue in his profile 😉

                    Download the free D'oh Book for SketchUp 📖

                    1 條回覆 最後回覆 回覆 引用 0
                    • pilouP 離線
                      pilou
                      最後由 編輯

                      If accents are forbidden, that is very annoyous for French Windows System 😲
                      Because there is an accent for the principal Desk and for some of path! !!! 😮
                      C:\Documents and Settings\Propriétaire\Bureau

                      PS I have not the use of this plug, but it's by curiosity 😄

                      Of course now I obtain nothing 😄
                      except this 😄 (i have saved my object with Cof as Untitled.skp
                      curious is the "/" and ""

                      cofgreporter
                      No such file or directory - C;\Documents and Settings\Propriétaire\Bureau/Untitled_CofG_Report.csv
                      CoG Report File;
                      'C;\Documents and Settings\Propriétaire\Bureau/Untitled_CofG_Report.csv'
                      Cannot be written - it's probably already open.
                      Close it and try making the Report again...
                      Exiting.
                      nil
                      

                      Edit: That works when I use a path without accent for save my file! 😎 👍
                      cvs.png

                      Frenchy Pilou
                      Is beautiful that please without concept!
                      My Little site :)

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

                        The Unicode paradox is an annoying bit of Sketchup's Ruby - some of the 'File' functions don't work properly if there are accented characters etc in path_names etc... Sorry!
                        At least we know the cause of the problem...
                        The \ / is also from the same methods when you get the filepath on a PC it has \ separators [/ on MAC], when you join on the new file_name it's always with the as the ;joining; separator / - but it still works OK... 😒

                        TIG

                        1 條回覆 最後回覆 回覆 引用 0
                        • B 離線
                          Bertier
                          最後由 編輯

                          there is no accent in my path ....

                          cofgreporter
                          undefined method `definition' for #Sketchup::Group:0xe005344
                          CoG Report File:
                          'F:\neo batitrad\Bar_Ka/console_CofG_Report.csv'
                          Cannot be written - it's probably already open.
                          Close it and try making the Report again...
                          Exiting.
                          nil

                          1 條回覆 最後回覆 回覆 引用 0
                          • pilouP 離線
                            pilou
                            最後由 編輯

                            Have you save your file SKp in the samme path?

                            Frenchy Pilou
                            Is beautiful that please without concept!
                            My Little site :)

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

                              Bertier
                              Did you install v1.2
                              Although it might still fail you should get more error messages... 😕

                              TIG

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

                                Heres's v1.3 http://forums.sketchucation.com/viewtopic.php?p=278046#p278046
                                It corrects the glitch that a few users might get with 'group.definition' - OK if you have some of my other tools installed but not this one alone - now sorted...
                                Please try and report back... 😕

                                TIG

                                1 條回覆 最後回覆 回覆 引用 0
                                • B 離線
                                  Bertier
                                  最後由 編輯

                                  hooray !

                                  it's working :

                                  cofgreporter
                                  CofG Report written to
                                  'F:\neo batitrad\Bar_Ka/console_CofG_Report.csv'
                                  nil

                                  nice.

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • B 離線
                                    Bertier
                                    最後由 編輯

                                    for some reason, using CoG makes SU "not responding"....

                                    any clues ?

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

                                      @bertier said:

                                      for some reason, using CoG makes SU "not responding"....
                                      any clues ?

                                      There's a lot of intensive stuff needed to 'integrate' possibly hundreds of slices through the selected object and find their common centroids...
                                      You should get a 'count-down' 'nnn of mmm' report in the VCB and then a '...processing ......' ?
                                      It will finish eventually...

                                      TIG

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • K 離線
                                        ksjoern
                                        最後由 編輯

                                        Hi, this is a very interesting plugin. I'm going to try it.
                                        Two things struck me.
                                        Knips 2011-09-23 um 09.23.18.png

                                        1st The rounding of numbers (but this is something I can work with ... )
                                        2nd Hollow objects (pipes, etc.) are calculated as full volumes.

                                        Knips 2011-09-23 um 10.09.14.png

                                        Can this be repaired with the hollow objects? That would be great.

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

                                          You can edit the number of dp's in the code - in the lines around the first half of the 300s...
                                          I'm unsure about your comment - objects that are individual 'solids' are reported correctly - even when there are hollows. However, if you combine objects into a group it will by its nature cease to be a true manifold solid as there are internal 'partitions' - therefore sometimes the volume calculations can be awry. You should take the CofG of the parts and then make a combined CofG - this is also important if the parts have different densities...
                                          Can you supply an example where manifold solid objects are returning incorrect values.Capture.PNG
                                          This one returns proper results even if the two groups are nested into one, as the 'slices' needed to calculate the CoG are maintained - but it is not always possible...

                                          TIG

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • K 離線
                                            KK279 Newcomers
                                            最後由 編輯

                                            I installed this plug in today but it does not appear on any of the SketcUp 2023 menus. How do I get a report?

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement