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

    Wall "cutter" for windows

    Scheduled Pinned Locked Moved Developers' Forum
    15 Posts 12 Posters 2.5k Views 12 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.
    • Didier BurD Offline
      Didier Bur
      last edited by

      Hi all,
      I've recently developed a small utility that I often use, it makes the openings or windows components able to automatically create holes in walls (made of two "sides") and to re-locate the component at a specified distance from one of the wall sides.
      It would take some more development to extend the script to any shape of component (circular, arched, and so on) and to make it user-friendly and simple to use, so I want to know if this would be of any interest to you ?
      Please watch 😲 the the small video to see what I mean.


      Unzip to get the AVI file

      DB

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        Now this is very interesting, Didier!
        Believe me, you will be loaded with ideas which way to proceed if you want to improve the script!

        I'have already started to think... πŸ˜’

        Gai...

        1 Reply Last reply Reply Quote 0
        • boofredlayB Offline
          boofredlay
          last edited by

          Yes, please develop this script.

          http://www.coroflot.com/boofredlay

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

            Something I've toyed with over the years BUT you go for it Didier - long over due...

            TIG

            1 Reply Last reply Reply Quote 0
            • jenujacobJ Offline
              jenujacob
              last edited by

              please! please! please! develop this cool script!!! πŸ˜„ πŸ˜„

              1 Reply Last reply Reply Quote 0
              • 3 Offline
                3eighty
                last edited by

                What a great Christmas present..Thanks again for your work D,,, πŸ˜„

                1 Reply Last reply Reply Quote 0
                • Mike LuceyM Offline
                  Mike Lucey
                  last edited by

                  This would be such a useful tool Didier. Thanks for all your work.

                  Mike

                  Support us so we can support you! Upgrade to Premium Membership!

                  1 Reply Last reply Reply Quote 0
                  • daikuD Offline
                    daiku
                    last edited by

                    Doors also! CB.

                    Clark Bremer
                    http://www.northernlightstimberframing.com

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sorgesu
                      last edited by

                      one of the questions I get asked most often when I am teaching a SketchUp class is about the ability to cut 2 surfaces.
                      This would be just wonderful. Everyone is waiting for it.
                      So I have a question. From the video it appears that you start off with a NON cutting component and the frame and window are placed on the surfac of the wall. When using your script an opening is punched into the wall and the window component is moved halfway inward or thereabouts. So how would it work if you DO want some framing on the outside of the wall?

                      Susan Sorger
                      Former Seller Hand Rendered Entourage
                      Former Canadian Authorized Training Centre, SketchUp

                      1 Reply Last reply Reply Quote 0
                      • Didier BurD Offline
                        Didier Bur
                        last edited by

                        Hi,

                        As an Acad/Revit/Artlantis/Illustrator/Dialux/PhotoShop AND SU teacher too 😲 , I had this idea long time ago because students often don't understand why a component can cut a face and not two πŸ˜‰

                        Sorgesu, you probably would have to specify a distance from say inner side of wall, or have to select an option for the window to stick inner/outer/some_distance from a wall side.
                        The most tricky part is to make a standard stock component (door or window) "self-cutting" without asking a complicated task to the user. I have some ideas about that but for the moment, you can select the outer edges of the component and context-click to make it self-cutting; or select the outer face, or click points on the outer loop (this is done one time for all).
                        I hope I'll find some nicer method, maybe the smaller convex hull, but it will surely be hard to fit all kinds of shapes.
                        I still have some problems to detect the nearest face opposite to the face where the component is glued to.
                        So don't expect it as a Christmas gift... 😒

                        DB

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

                          Didier

                          If it helps here's my thought process that's not too off yours ??? ...

                          You'd place the Cutting Compo as usual into the outer face.
                          The context-menu spots a cutting-component already in a face (via typename, glued_to gives face and other available properties etc). It should also check if there's an inner face to cut - pointless to give the option otherwise - your projection tools come in here ?...
                          The context-menu item is say 'Cut "[compo'name]" into inner Face'
                          We can get the intersection edges between the Component and its glued face.
                          Assuming we have the 'cut' lines' loop we copy them onto the inner face by projecting backwards.
                          We erase the outer face loop so the window cuts into the face properly once again.
                          We erase the inner face within its loop.
                          We make reveals from this out to the outer face (copy inner face materials).
                          To get the hole/reveals to move with the component we could link those entities with attributes and observers etc so if one of them moves then so does the other one...

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • Didier BurD Offline
                            Didier Bur
                            last edited by

                            Hi TIG,

                            @unknownuser said:

                            You'd place the Cutting Compo as usual into the outer face.
                            The context-menu spots a cutting-component already in a face (via typename, glued_to gives face and other available properties etc). It should also check if there's an inner face to cut - pointless to give the option otherwise - your projection tools come in here ?...
                            The context-menu item is say 'Cut "[compo'name]" into inner Face'

                            That's exactly the way it goes for now.

                            @unknownuser said:

                            We can get the intersection edges between the Component and its glued face.

                            HOW ??? With intersect_with_model methods and such ?
                            A remaining problem is that sometimes the shape of the window is NOT the same as the shape of the hole in the wall.

                            @unknownuser said:

                            Assuming we have the 'cut' lines' loop we copy them onto the inner face by projecting backwards.

                            Once the face has been drawn on the outer face, I pushpull it backwards (because I already know the "thickness" of the wall, having detected the nearest parallel face). So the reveals are automatically painted with the outer face material.
                            To move the component, I must erase it first and re-insert another instance at the new insertion_point, because there's no way to unglue the original component from the outer face AFAIK (but that's not a problem).

                            I've never used observers but it will be a good opportunity to learn πŸ˜„

                            Thanks for your help and ideas.

                            DB

                            1 Reply Last reply Reply Quote 0
                            • jujuJ Offline
                              juju
                              last edited by

                              This will be quite useful, this kind of code is long overdue and GSU doesn't seem to be doing the coding.

                              Save the Earth, it's the only planet with chocolate.

                              1 Reply Last reply Reply Quote 0
                              • N Offline
                                Nexus009
                                last edited by

                                great idea! 😍

                                Il mio Teschio Γ¨ una Bandiera che vuol dire LibertΓ 

                                1 Reply Last reply Reply Quote 0
                                • F Offline
                                  Fletch
                                  last edited by

                                  count me in! 😍

                                  Fletch
                                  Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

                                  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