• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Component/Group from Layer/Material?

Scheduled Pinned Locked Moved Developers' Forum
12 Posts 4 Posters 849 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.
  • T Offline
    thomthom
    last edited by 27 Aug 2008, 14:10

    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
    • C Offline
      Chris Fullmer
      last edited by 28 Aug 2008, 05:40

      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
      • T Offline
        thomthom
        last edited by 28 Aug 2008, 06:09

        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
        • T Offline
          thomthom
          last edited by 28 Aug 2008, 07:05

          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 28 Aug 2008, 14:12

            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
            • T Offline
              thomthom
              last edited by 28 Aug 2008, 17:04

              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 29 Aug 2008, 10:05

                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 2 Sept 2008, 14:46

                  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 3 Sept 2008, 04:08

                    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
                    • C Offline
                      Chris Fullmer
                      last edited by 3 Sept 2008, 05:42

                      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
                      • T Offline
                        thomthom
                        last edited by 3 Sept 2008, 06:16

                        @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 6 Sept 2008, 05:50

                          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
                          1 / 1
                          • First post
                            1/12
                            Last post
                          Buy SketchPlus
                          Buy SUbD
                          Buy WrapR
                          Buy eBook
                          Buy Modelur
                          Buy Vertex Tools
                          Buy SketchCuisine
                          Buy FormFonts

                          Advertisement