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

    Component/Group from Layer/Material?

    Scheduled Pinned Locked Moved Developers' Forum
    12 Posts 4 Posters 849 Views 4 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.
    • thomthomT Offline
      thomthom
      last edited by

      Is there a ruby that will take a mesh and separate geometry by layer or material?

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

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        I think this one does what you want.

        favicon

        (www.smustard.com)

        Chris

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

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          Does it work on selections, or does it take the entire model?

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

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            I just tried it, and it modifies the entire scene. That doesn't work too well for me.

            The problem I'm having is that when exporting from Revit allot of the geometry is joined into one mesh, but various types are on different layers. But I also have a number of groups, such as windows and door which I want to keep as is. If that script worked on selection it's do the job perfectly.

            I really should get into Ruby, then I could have modified it.

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

            1 Reply Last reply Reply Quote 0
            • R Offline
              RickW
              last edited by

              Tell you what - I'll modify it for you 😄 Just give me a little while...

              RickW
              [www.smustard.com](http://www.smustard.com)

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                I love this forum!
                Thank you very much. The people here are awesome.

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

                1 Reply Last reply Reply Quote 0
                • M Offline
                  Matt666
                  last edited by

                  Hi !

                  Look at here, there is an early script can do what you want. there is still a problem (subject of the message) but it works if you killed Bryce 👿

                  @rickw said:

                  Tell you what - I'll modify it for you 😄 Just give me a little while...

                  Hi Rick !
                  Yeah ! I'm in a hurry to see your code 😄 !!
                  Thank you !

                  Frenglish at its best !
                  My scripts

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    RickW
                    last edited by

                    Testing the update now...

                    [EDIT] The remaining problem to be solved is that an exploded group/component will create "unreported" geometry if a new edge is created due to an edge from the g/c intersecting with an edge that was outside the g/c (think of a "T" where the top edge was in the g/c and the leg was outside the g/c). This geometry is not yet handled by the script, since SU isn't reporting it along with the exploded geometry. I think I need to write an observer to check all geometry created during an explode. 😒

                    RickW
                    [www.smustard.com](http://www.smustard.com)

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      RickW
                      last edited by

                      Okay, so what is the consensus - wait for the observer to be written/tested, or release now and update later?

                      RickW
                      [www.smustard.com](http://www.smustard.com)

                      1 Reply Last reply Reply Quote 0
                      • Chris FullmerC Offline
                        Chris Fullmer
                        last edited by

                        I can wait. But then again, its not me who needed the script.

                        Chris

                        BTW, hows it going Rick? Good to see you around. I don't post in this forum too often, so I haven't really said hi since basecamp.

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

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by

                          @rickw said:

                          Okay, so what is the consensus - wait for the observer to be written/tested, or release now and update later?

                          I can wait for the observer to be written. It's not a rush thing for me, just a very convenient tool to have. 😄

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

                          1 Reply Last reply Reply Quote 0
                          • R Offline
                            RickW
                            last edited by

                            Okay, hopefully I can get the observer written and working next week.

                            RickW
                            [www.smustard.com](http://www.smustard.com)

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post
                            Buy SketchPlus
                            Buy SUbD
                            Buy WrapR
                            Buy eBook
                            Buy Modelur
                            Buy Vertex Tools
                            Buy SketchCuisine
                            Buy FormFonts

                            Advertisement