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]Group in Component

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

      The script creates a group component
      Menu Plugins >> Group in Component

      components.rb

      Edit: Changed title to contain tag '[Plugin']

      1 條回覆 最後回覆 回覆 引用 0
      • Chris FullmerC 離線
        Chris Fullmer
        最後由 編輯

        Hi Sahi, I'm not quite sure what you mean. It turns groups into components? Or changes components into groups? Or something entirely different?

        Chris

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 條回覆 最後回覆 回覆 引用 0
        • S 離線
          sahi
          最後由 編輯

          Group changes in the components.
          If the group does something similar to the one component

          1 條回覆 最後回覆 回覆 引用 0
          • thomthomT 離線
            thomthom
            最後由 編輯

            Looking at the code and I still don't understand what this does.

            Thomas Thomassen — SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 條回覆 最後回覆 回覆 引用 0
            • S 離線
              sahi
              最後由 編輯

              @thomthom said:

              Looking at the code and I still don't understand what this does.

              1.selection Group
              2. Translates into a component group
              3. It scans all the remaining groups
              4 If there are the same then replaces them with this component.

              1 條回覆 最後回覆 回覆 引用 0
              • CadFatherC 離線
                CadFather
                最後由 編輯

                guess it's like the one in thom's selection tools - turn groups in components.. amazing what a couple a semantic turn can do..

                1 條回覆 最後回覆 回覆 引用 0
                • thomthomT 離線
                  thomthom
                  最後由 編輯

                  I'm not sure if it is quite the same. It does some comparisons of edge lengths...

                  Thomas Thomassen — SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  1 條回覆 最後回覆 回覆 引用 0
                  • thomthomT 離線
                    thomthom
                    最後由 編輯

                    If that is an update, could you update the first post please?

                    Thomas Thomassen — SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 條回覆 最後回覆 回覆 引用 0
                    • S 離線
                      sahi
                      最後由 編輯

                      @thomthom said:

                      I'm not sure if it is quite the same. It does some comparisons of edge lengths...

                      Yes.
                      Сreate an array of them, sort, compare. (Compare the array and not the length)

                      In the plugin still has bugs.

                      Here's a version of the plug

                      updated in first post

                      1 條回覆 最後回覆 回覆 引用 0
                      • R 離線
                        rv1974
                        最後由 編輯

                        @sahi
                        MGIMO finished? 🙂

                        1 條回覆 最後回覆 回覆 引用 0
                        • S 離線
                          sahi
                          最後由 編輯

                          @rv1974 said:

                          @sahi
                          MGIMO finished? 🙂

                          http://s.rimg.info/8515032bfe765a932cb54887d1f869d6.gif

                          1 條回覆 最後回覆 回覆 引用 0
                          • P 離線
                            putnik
                            最後由 編輯

                            sahi,

                            напиши по русски, что плагин делает, я переведу. не особо понятно.

                            http://keshas.info

                            1 條回覆 最後回覆 回覆 引用 0
                            • S 離線
                              sahi
                              最後由 編輯

                              @putnik said:

                              sahi,
                              напиши по русски, что плагин делает, я переведу. не особо понятно.

                              Скрипт переводит группы в компоненты. одинаковые группы заменяет на один компонент.
                              Вот для примера файл: смотрим статистику
                              Pech_SU5.zip
                              Состоит из групп, размером 756 кб, групп 155
                              Выделяем все и применяем скрипт.
                              Размер файла уменьшается на 500 кб

                              PS: Скрипт ещё не закончен, ему не хватает точности, но все же довольно таки не плохо работает.

                              1 條回覆 最後回覆 回覆 引用 0
                              • R 離線
                                rv1974
                                最後由 編輯

                                чем он отличается от уже сушествуюшего?

                                1 條回覆 最後回覆 回覆 引用 0
                                • Chris FullmerC 離線
                                  Chris Fullmer
                                  最後由 編輯

                                  Any explanation what this most recent file is? Thanks!

                                  Lately you've been tan, suspicious for the winter.
                                  All my Plugins I've written

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • thomthomT 離線
                                    thomthom
                                    最後由 編輯

                                    From Google Translate:

                                    @unknownuser said:

                                    The script takes the group into components. The same group replaces one component.
                                    Here's an example file: look at the statistics

                                    Pech_SU5.zip
                                    (290.92 KiB) Not downloaded yet

                                    Consists of a group size of 756 kb, 155 groups
                                    Select all and apply the script.
                                    File size reduced to 500 kb

                                    PS: The script is not finished yet, it lacks precision, but rather did not not work.

                                    Thomas Thomassen — SketchUp Monkey & Coding addict
                                    List of my plugins and link to the CookieWare fund

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • chriC 離線
                                      chri
                                      最後由 編輯

                                      hi Sahi

                                      you have done a great job 👍 👍

                                      seems to work with SKECHUP 8 and 2013
                                      Doesn't work with SKETCHUP 6 2014 2015

                                      Thanks again
                                      Chri


                                      BEFORE.png


                                      AFTER.png

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

                                        @chri said:

                                        hi Sahi

                                        you have done a great job 👍 👍

                                        seems to work with SKECHUP 8 and 2013
                                        Doesn't work with SKETCHUP 6 2014 2015

                                        Thanks again
                                        Chri

                                        i wish i could get the same result on my computer

                                        i only get an error message

                                        2014-12-25 13_50_09-Sans titre - SketchUp Pro.png

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • chriC 離線
                                          chri
                                          最後由 編輯

                                          Hi

                                          in english
                                          You will find here , my system and my plugin file if it can help you .

                                          en français
                                          Bonjour
                                          Trouves ci-joint des images de ma configuration et le fichier ruby correspondant a notre sujet .

                                          Salutations

                                          Chri


                                          Image1.png


                                          Image2.png


                                          Image3.png


                                          components.rb

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

                                            @chri said:

                                            Hi

                                            in english
                                            You will find here , my system and my plugin file if it can help you .

                                            en français
                                            Bonjour
                                            Trouves ci-joint des images de ma configuration et le fichier ruby correspondant a notre sujet .

                                            Salutations

                                            Chri

                                            Thank you !

                                            i don't know why, but with the file you put in line, i don't get the error message

                                            it worked also on my computer: the plugin makes components out of groups if they are square boxes

                                            From the test i made, the square boxes must have been made into a group and then duplicated, before the plugin is used; otherwise the plugin doesn't recognize them as identical and makes 2 different components

                                            it could be possible maybe to make it work for other types of groups; by checking the distance between the corners of the bounding box, for example

                                            i shall try

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

                                            Advertisement