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
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • TIGT 離線
      TIG Moderator
      最後由 編輯

      (c) TIG 2010
      Permission to use, copy, modify, and distribute this software for
      any purpose and without fee is hereby granted, provided that the above
      copyright notice appear in all copies.
      THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
      IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.


      cofgreporter.rb >>> ../Plugins/ folder


      Usage:
      Use this after adding some CofG's [i.e. 'Center of Gravity' tags]
      Type 'cofgreporter' in the Ruby Console.
      If the Model SKP is new and has not yet been saved you will get an error.
      If there are no CofG's to Report you will get an error.
      If the destination CofG Report cannot be written -
      e.g. it's already open in Excel - you will get an error.
      Otherwise a CofG Report is written into the Model's folder.
      It is named to match the Model -
      e.g. 'MyModel.skp' and 'MyModel_CofG_Report.csv'
      A '.csv' file can be opened in Excel etc.
      Link the .csv into a pre-formated .xls file with additional 'sums' etc, so
      that it auto-updates.
      It is sorted alphanumerically and reports
      'ID' 'Weight' 'Volume' - the final two are in the units used in the CofG's.
      The 'ID' is the CofG name-tag based on the original Instance's name, but
      remember that you might have adjusted this in the dialogs during the making
      of the CofG's - i.e. it is as displayed in the CofG's text-tag, not
      necessarily the Instance's name.


      Donations:
      by PayPal to info @ revitrev.orgPayPalButton___________________________________________________________________________
      Version:
      1.0 20101009 First release.
      1.1 20101010 csv defined outside of begin/rescue.
      1.2 20101010 Extra rescue error messages added.
      1.3 20101010 Glitch with some users' "group.definition" fixed.


      cofgreporter.rb

      TIG

      1 條回覆 最後回覆 回覆 引用 0
      • W 離線
        watkins
        最後由 編輯

        Dear TIG,

        Sorry for being dense, but does this plugin calculate the C_of_G of a shape? I do not understand the reference to adding CofGs.

        Kind regards,
        Bob

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

          So speedy as usual 😎

          http://www.podisticasolidarieta.it/podistica/home.nsf/EBAB48606D097712C125768700589224/$FILE/bipbip.jpg

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

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

            @Tig : Can you write result with a little Offset?
            Result are always in front of something even we rotate or scale the object 😄


            cofg.jpg

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

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

              You need to use another tool 'Center of Gravity' to make the CofG tags first.
              It's here http://forums.sketchucation.com/viewtopic.php?p=229401#p229401
              I wrote this 'Reporter' for Bertier who wants to be able to report weights of objects etc after tagging them with CofG data...

              TIG

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

                @unknownuser said:

                @Tig : Can you write result with a little Offset?
                Result are always in front of something even we rotate or scale the object 😄

                Use Xray mode...
                The tool is a utility not a presentation aid.
                You can always move the text-tag by editing the CofG group...
                😕

                TIG

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

                  @unknownuser said:

                  You can always move the text-tag by editing the CofG group...

                  💭 👍 😳
                  cofg1.jpg

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

                  1 條回覆 最後回覆 回覆 引用 0
                  • W 離線
                    watkins
                    最後由 編輯

                    Dear TIG,

                    Thanks for the explanation.

                    Regards,
                    Bob

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

                      @unknownuser said:

                      @unknownuser said:

                      You can always move the text-tag by editing the CofG group...

                      Thanks, Pilou
                      ...Comme toujours, je peut te faire confiance...
                      Aucun problème !
                      😉

                      TIG

                      1 條回覆 最後回覆 回覆 引用 0
                      • KrisidiousK 離線
                        Krisidious
                        最後由 編輯

                        does this do Imperial Weights too?

                        By: Kristoff Rand
                        Home DesignerUnique House Plans

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

                          @Tig 😄
                          Je peut no, Je peux yes
                          a very useful thing for French verbs and conjugation ☀
                          (on left top page: enter the verb, press ok ..and scroll )

                          conjugate.jpg

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

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

                            @krisidious said:

                            does this do Imperial Weights too?

                            If you use the 'imperial' measurements for the CogG volumes and density...
                            Possible units are "kg/m3", "tonnes/m3", "g/cm3", "tons/yd3", "lbs/ft3"
                            If others were preferred they could be added...

                            TIG

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

                              @unknownuser said:

                              @Tig 😄
                              Je peut no, Je peux yes

                              Pilou 😞
                              I know!
                              I can..., thou canst..., he/she/it can..., we can..., you can... they can...? [can!]
                              My French is rubbish [but, so is your English! 😉 ]
                              Je le sais!
                              Je peux..., tu peux...,il/elle peut..., nous pouvons..., vous pouvez... ils/elles peuvent? [pu!]
                              Mon Français est des déchets [mais c'est que t'anglais! 😉 ]

                              In good humour...
                              Dans la bonne humeur ...
                              😄

                              ???
                              l'eau is water
                              la peau is skin
                              Both of these nouns are considered male, there is no reason behind this it is just the way the language works!
                              Similarly there are rules for female nouns such as:
                              un périphérique is a peripheral
                              un graphique is a graph........................ 😕

                              TIG

                              1 條回覆 最後回覆 回覆 引用 0
                              • KrisidiousK 離線
                                Krisidious
                                最後由 編輯

                                excellente' sorry wrong language...

                                now another question... I know this is kinda off subject. what is the implication of this plugin, does this allude to a future where these weights could be transfered through shear force or straight line force?

                                the reason I ask is that I look forward to a time when I can build roofs, beams or arches and have their loads followed and measured.

                                SketchyPhysics got me excited about the possibility... that a model could have gravity and therefore transfer weight and force towards a central point.

                                thanks for another great plugin...

                                By: Kristoff Rand
                                Home DesignerUnique House Plans

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

                                  Kristoff

                                  No reason why not... BUT we just haven't written it yet... 🤓

                                  TIG

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

                                    @ Tig
                                    The big mystery is why so much languages? 😉

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

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

                                      MERCI / THANK YOU / Danke !

                                      that is awsome !

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

                                        Hello TIG

                                        tryed it, got this :

                                        cofgreporter
                                        Error: #<TypeError: C:/Program Files/Google/Google SketchUp 8/Plugins/cofgreporter.rb:81:in +': can't convert nil into String> C:/Program Files/Google/Google SketchUp 8/Plugins/cofgreporter.rb:81 C:/Program Files/Google/Google SketchUp 8/Plugins/cofgreporter.rb:81:in cofgreporter'
                                        (eval):0

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

                                          Bertier

                                          Here's v1.1 http://forums.sketchucation.com/viewtopic.php?p=278046#p278046
                                          The error in the error message is fixed!
                                          Please retry...
                                          To be on the safe site please ensure your file_path/skp_name contains no accented characters - SUp's Ruby is not happy with unicoded characters 😞

                                          TIG

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

                                            will do now;

                                            thank you

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

                                            Advertisement