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!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    [Request] - Component's options report

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

      ' ' ' >> ' " '
      One 'character' is all it takes to **** up a script -
      is there quality control at Google ??? 😒

      TIG

      1 條回覆 最後回覆 回覆 引用 0
      • D 離線
        dedmin
        最後由 編輯

        👍 👍 👍 👍 👍 👍

        2010-08-19_211023.jpg

        1 條回覆 最後回覆 回覆 引用 0
        • D 離線
          dedmin
          最後由 編輯

          SketchUP's Generate Report freezes the program just at 1 components

          2010-08-19_211533.jpg

          But this script is working fine so far!!

          1 條回覆 最後回覆 回覆 引用 0
          • D 離線
            dedmin
            最後由 編輯

            Now, that at least we can extract some data is there a way to filtered it. For instance to get components quantity and

            2010-08-19_214334.jpg

            2010-08-19_214415.jpg

            1 條回覆 最後回覆 回覆 引用 0
            • D 離線
              dedmin
              最後由 編輯

              Up.

              1 條回覆 最後回覆 回覆 引用 0
              • D 離線
                dedmin
                最後由 編輯

                I found a way to convert the inches, but the problem with counting components still remain. Any idea how to include this into the report? 😒

                1 條回覆 最後回覆 回覆 引用 0
                • D 離線
                  dedmin
                  最後由 編輯

                  Still hoping... 👊

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

                    Since your example is written in 'Cyrillic' [?] it's hard to understand... Ddo you find the details of a component and also want to show a total number of it in the report - like on the Entity Info window ?
                    You need to find its definition and then its instances and count them, the format the html/csv to include the 'count' - something like...

                    ss=model.selection
                    ents=ss.to_a
                    ### OR ents=model.entities
                    ### OR ents=model.active_entities
                    defns=[] ### to become a list of used definitions
                    ents.each{|e|
                      if e.class==Sketchup;;ComponentInstance
                        defns<< e.definition if not defns.include?(e.definition)
                      end#if
                    }
                    counts=[] ### to become a collection of definitions [by name] and their instance counts [as a string]
                    defns.each[|d|
                      counts<< [d.name, d.instances.length.to_s]
                    }
                    
                    
                    • note it's untested!
                      You now have an array of selected [or all used] definitions by name, paired with the total of their instances....
                      So to output it to the Ruby Console use something like...
                    counts.each{|e|
                      puts e[0]+"\t"+e[1]
                    }
                    

                    I'll leave the formating of the csv / html lines etc to you or others............. 🤓

                    TIG

                    1 條回覆 最後回覆 回覆 引用 0
                    • D 離線
                      dedmin
                      最後由 編輯

                      Thanks so much! I made a component in English to show what I mean:

                      2010-08-22_193107.jpg
                      2010-08-22_193044.jpg

                      The report is a real mess and in inches, but I managed to clean it up in Excel.

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

                        So you are almost sorted 😄

                        TIG

                        1 條回覆 最後回覆 回覆 引用 0
                        • C 離線
                          Cjoenck
                          最後由 編輯

                          I did need a plugin to creat a simple list of components with: LenX, LenZ, LenY, Material, and Name
                          Not the boundinbox, because sometime in the draw the component could stay in angle different that axes.
                          Please need help, Could give a good Cookie to your jar.
                          Will use this to report list of furniture components to outside software that will calculate price.
                          Need SAP!
                          Best Regards
                          😕 Celio

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

                            I'm thinking of creating a report writer that allows you to pick, choose and specify the order of columns in a csv report. The report definition can then be given a name that you can choose from a pick list when running subsequent reports.

                            Any one interested?

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

                              I'm really interested in this!
                              I would like to help as well but I'm a complete beginner 😞

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

                                If there is enough interest then I would jump into it -- otherwise this is on a back burner.

                                1 條回覆 最後回覆 回覆 引用 0
                                • JQLJ 離線
                                  JQL
                                  最後由 編輯

                                  @garry k said:

                                  I'm thinking of creating a report writer that allows you to pick, choose and specify the order of columns in a csv report. The report definition can then be given a name that you can choose from a pick list when running subsequent reports.

                                  Any one interested?

                                  Would it also allow us to convert the columns names?

                                  I mean, my contractors aren't much interested in LenZ, but they could very well relate to height.

                                  Could we also Combine values?

                                  LenX | LenY | LenZ columns, could be merged into a single Dimensions Column and each LenX, LenY and LenZ value would then turn into something like 1.5m X 2.0m X 0.005m?

                                  EDIT: Oh and if unit conversion would be there too...

                                  www.casca.pt
                                  Visit us on facebook!

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

                                    Column names would be handled by my translation layer.
                                    You could convert English translation (which is normally just a template) to what ever you want.
                                    Normally with my plugins I try to honor the units that the user has set up for the model.

                                    Yes - Sketchup stores data a certain way. BUT I Am a big fan of metric - so I honor it and convert into mm.

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • JQLJ 離線
                                      JQL
                                      最後由 編輯

                                      I'm sure you'd pull off something very good...

                                      www.casca.pt
                                      Visit us on facebook!

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

                                      Advertisement