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

    [REQ] find similar groups and create components

    Scheduled Pinned Locked Moved Plugins
    26 Posts 6 Posters 1.0k Views 6 Watching
    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.
    • EarthMoverE Offline
      EarthMover
      last edited by

      Not sure. I used it the other day on a Chief Architect import and it worked beautifully....but that was windows and such. Perhaps try this route instead - http://forums.sketchucation.com/viewtopic.php?t=26008 Would be more tedious (Outliner should help) but might be more predictable.

      I also had issues previously with the component comparison plugin not doing anything for me, even on simple box test. I redownloaded the plugin and updated Thom's lib files and it seemed to have corrected it. Is it not working at all, even on a simple test?

      3D Artist at Clearstory 3D Imaging
      Guide Tool at Winning With Sketchup
      Content Creator at Skapeup

      1 Reply Last reply Reply Quote 0
      • soloS Offline
        solo
        last edited by

        I may have an outdated lib file, can you direct me to the most recent one?

        http://www.solos-art.com

        If you see a toilet in your dreams do not use it.

        1 Reply Last reply Reply Quote 0
        • EarthMoverE Offline
          EarthMover
          last edited by

          2.6 is his latest, but it's not specifically needed for the plugin. - http://forums.sketchucation.com/viewtopic.php?t=30503

          However, like you, on my end the plugin itself seemed broken for a while.. If I remember I re-downloaded and re-installed all of my plugins from Thomas and it seemed to fix the issue. Can't say what it was specifically. If it is working properly, when you run the script with nothing selected you should receive a warning that says "Analyzing all definitions in a model can take a long time. Are you sure you want to continue?"

          3D Artist at Clearstory 3D Imaging
          Guide Tool at Winning With Sketchup
          Content Creator at Skapeup

          1 Reply Last reply Reply Quote 0
          • soloS Offline
            solo
            last edited by

            I re-installed again and did everything correctly even got the warning and clicked okay and nothing happened.

            I dunno what's up.

            http://www.solos-art.com

            If you see a toilet in your dreams do not use it.

            1 Reply Last reply Reply Quote 0
            • sdmitchS Offline
              sdmitch
              last edited by

              I'm assumming that the groups don't have names and must be compared entity by entity?

              Nothing is worthless, it can always be used as a bad example.

              http://sdmitch.blogspot.com/

              1 Reply Last reply Reply Quote 0
              • soloS Offline
                solo
                last edited by

                I believe you are right, they are all grouped as per import from Deep exploration which I used to convert the .stp to .skp.

                http://www.solos-art.com

                If you see a toilet in your dreams do not use it.

                1 Reply Last reply Reply Quote 0
                • gillesG Offline
                  gilles
                  last edited by

                  Solo, could you try this:
                  #1 make one of the similar groups a component ( explode the group before )
                  #2 select the component
                  #3 run Similar objects/ Replace Similar Objects.

                  All similar groups become instances of the component.

                  " c'est curieux chez les marins ce besoin de faire des phrases "

                  1 Reply Last reply Reply Quote 0
                  • sdmitchS Offline
                    sdmitch
                    last edited by

                    Solo, I hate to rain on your parade but creating a group and copying it 99 times versus placing 100 instances of that group converted into a component actually increased the filesize.

                    Nothing is worthless, it can always be used as a bad example.

                    http://sdmitch.blogspot.com/

                    1 Reply Last reply Reply Quote 0
                    • soloS Offline
                      solo
                      last edited by

                      @sdmitch said:

                      Solo, I hate to rain on your parade but creating a group and copying it 99 times versus placing 100 instances of that group converted into a component actually increased the filesize.

                      What I want is to make it faster to navigate in SU, so making it a component and then the other 99 of the same mesh as a instance of that component would make it lighter in SU.

                      http://www.solos-art.com

                      If you see a toilet in your dreams do not use it.

                      1 Reply Last reply Reply Quote 0
                      • soloS Offline
                        solo
                        last edited by

                        @gilles said:

                        Solo, could you try this:
                        #1 make one of the similar groups a component ( explode the group before )
                        #2 select the component
                        #3 run Similar objects/ Replace Similar Objects.

                        All similar groups become instances of the component.

                        I tried that to no avail, nothing happened.

                        http://www.solos-art.com

                        If you see a toilet in your dreams do not use it.

                        1 Reply Last reply Reply Quote 0
                        • soloS Offline
                          solo
                          last edited by

                          This is the ruby consol report:

                          Replacing Similar Objects...
                          Error; #<NoMethodError; undefined method `definition=' for #<Sketchup;;Group;0x148c1b6c>>
                          C;/PROGRA~2/Google/GOOGLE~1/Plugins/tt_cc.rb;139;in `replace'
                          C;/PROGRA~2/Google/GOOGLE~1/Plugins/tt_cc.rb;137;in `each'
                          C;/PROGRA~2/Google/GOOGLE~1/Plugins/tt_cc.rb;137;in `replace'
                          C;/PROGRA~2/Google/GOOGLE~1/Plugins/tt_cc.rb;119;in `each'
                          C;/PROGRA~2/Google/GOOGLE~1/Plugins/tt_cc.rb;119;in `replace'
                          C;/PROGRA~2/Google/GOOGLE~1/Plugins/tt_cc.rb;33
                          C;/PROGRA~2/Google/GOOGLE~1/Plugins/tt_cc.rb;139;in `call'
                          C;/PROGRA~2/Google/GOOGLE~1/Plugins/tt_cc.rb;139
                          
                          

                          http://www.solos-art.com

                          If you see a toilet in your dreams do not use it.

                          1 Reply Last reply Reply Quote 0
                          • sdmitchS Offline
                            sdmitch
                            last edited by

                            I believe that is because only components have definitions.

                            Nothing is worthless, it can always be used as a bad example.

                            http://sdmitch.blogspot.com/

                            1 Reply Last reply Reply Quote 0
                            • gillesG Offline
                              gilles
                              last edited by

                              You should report to Thomthom.
                              Could you post a model?

                              " c'est curieux chez les marins ce besoin de faire des phrases "

                              1 Reply Last reply Reply Quote 0
                              • soloS Offline
                                solo
                                last edited by

                                @gilles said:

                                You should report to Thomthom.
                                Could you post a model?

                                Model is 347MB 😲

                                http://www.solos-art.com

                                If you see a toilet in your dreams do not use it.

                                1 Reply Last reply Reply Quote 0
                                • gillesG Offline
                                  gilles
                                  last edited by

                                  Could you isolate some groups in a separate model to give it a try?

                                  " c'est curieux chez les marins ce besoin de faire des phrases "

                                  1 Reply Last reply Reply Quote 0
                                  • TIGT Offline
                                    TIG Moderator
                                    last edited by

                                    @sdmitch said:

                                    I believe that is because only components have definitions.
                                    Components, Groups AND Images ALL have "definitions".
                                    However, unlike "instance.definition" there is NO API "group.definition" method [OR indeed "image.definition"] UNLESS it has been added by additional code within a script to make the method - so therefore this suggests 'something is missing', because TT WOULD have included for this somewhere in his coding... ?
                                    So... do you have all of the support files installed properly [needed TT Libs etc] ?:

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • gillesG Offline
                                      gilles
                                      last edited by

                                      It seems that TT Libs aren't request for this one.

                                      " c'est curieux chez les marins ce besoin de faire des phrases "

                                      1 Reply Last reply Reply Quote 0
                                      • TIGT Offline
                                        TIG Moderator
                                        last edited by

                                        That may be... but 'group.definition' does need to be created somewhere...
                                        PM TT... 😕

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • soloS Offline
                                          solo
                                          last edited by

                                          Okay, I downloaded the window model from the thread where the plugin exists and ran the test and it worked exactly as it should, so this means my instalation and all needed files are in order.

                                          I then created a new scene and made a cube, grouped it and created 20 instances of it then ran the script which did nothing....is it me not understanding what this script should do or is something funny going on?

                                          http://www.solos-art.com

                                          If you see a toilet in your dreams do not use it.

                                          1 Reply Last reply Reply Quote 0
                                          • gillesG Offline
                                            gilles
                                            last edited by

                                            @unknownuser said:

                                            I then created a new scene and made a cube, grouped it and created 20 instances of it then ran the script which did nothing....is it me not understanding what this script should do or is something funny going on

                                            If you make on them different ( explode then group or better make component ) it should work.

                                            if you have 1 group + 20 instances of it they all have the same definition, so there is nothing to change.
                                            .... I think; ❓

                                            " c'est curieux chez les marins ce besoin de faire des phrases "

                                            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