• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

[Plugin]Group in Component

Scheduled Pinned Locked Moved Plugins
25 Posts 9 Posters 17.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    sahi
    last edited by sahi 28 Jun 2010, 13:44

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

    components.rb

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

    1 Reply Last reply Reply Quote 0
    • C Offline
      Chris Fullmer
      last edited by 28 Jun 2010, 17:21

      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 Reply Last reply Reply Quote 0
      • S Offline
        sahi
        last edited by 28 Jun 2010, 18:15

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

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 28 Jun 2010, 18:31

          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 Reply Last reply Reply Quote 0
          • S Offline
            sahi
            last edited by 28 Jun 2010, 18:38

            @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 Reply Last reply Reply Quote 0
            • C Offline
              CadFather
              last edited by 28 Jun 2010, 21:25

              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 Reply Last reply Reply Quote 0
              • T Offline
                thomthom
                last edited by 28 Jun 2010, 21:52

                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 Reply Last reply Reply Quote 0
                • T Offline
                  thomthom
                  last edited by 29 Jun 2010, 07:25

                  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 Reply Last reply Reply Quote 0
                  • S Offline
                    sahi
                    last edited by 29 Jun 2010, 07:44

                    @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 Reply Last reply Reply Quote 0
                    • R Offline
                      rv1974
                      last edited by 29 Jun 2010, 08:54

                      @sahi
                      MGIMO finished? 🙂

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        sahi
                        last edited by 29 Jun 2010, 09:11

                        @rv1974 said:

                        @sahi
                        MGIMO finished? 🙂

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

                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          putnik
                          last edited by 30 Jun 2010, 05:09

                          sahi,

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

                          http://keshas.info

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            sahi
                            last edited by 30 Jun 2010, 07:19

                            @putnik said:

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

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

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

                            1 Reply Last reply Reply Quote 0
                            • R Offline
                              rv1974
                              last edited by 30 Jun 2010, 08:47

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

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                Chris Fullmer
                                last edited by 30 Jun 2010, 15:06

                                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 Reply Last reply Reply Quote 0
                                • T Offline
                                  thomthom
                                  last edited by 30 Jun 2010, 15:10

                                  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 Reply Last reply Reply Quote 0
                                  • chriC Offline
                                    chri
                                    last edited by 24 Dec 2014, 18:18

                                    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 Reply Last reply Reply Quote 0
                                    • G Offline
                                      glro
                                      last edited by 25 Dec 2014, 13:04

                                      @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 Reply Last reply Reply Quote 0
                                      • chriC Offline
                                        chri
                                        last edited by 25 Dec 2014, 15:06

                                        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 Reply Last reply Reply Quote 0
                                        • G Offline
                                          glro
                                          last edited by 25 Dec 2014, 18:19

                                          @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 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          • First post
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement