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

    [Plugin] Hole Punching Tool

    Scheduled Pinned Locked Moved Plugins
    200 Posts 43 Posters 219.8k Views 43 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.
    • mariochaM Offline
      mariocha
      last edited by

      Finally, I think your suggestion to intersect the compo with the face will be just fine. Thousand thanks ! 😄

      %(#008000)[Mario C.
      Every rule has exceptions, but some.]

      1 Reply Last reply Reply Quote 0
      • pilouP Offline
        pilou
        last edited by

        Maybe can help for some cases ?

        Frenchy Pilou
        Is beautiful that please without concept!
        My Little site :)

        1 Reply Last reply Reply Quote 0
        • mariochaM Offline
          mariocha
          last edited by

          Dynamic components tend to get pretty complicated. They are mainly made of sub-components and groups.
          In order to have them cut opening, I add loose edges framing the opening I want.
          Some geometry, trimmings, extend outside the perimeter of those edges.
          And also, some geometry are hidden, depending on the user choice of options.
          So HolePunch is having a lot of problems with my complicated DCs.
          Looking at the code, I think I understand that it is adding all the faces of sub components and groups as punching elements. Too many overlapping geometry in my DCs, I think.
          Btw, your code is a huge lesson in high level SU Ruby API coding.
          So my question; Is a HolePunch variant taking only the cut-opening edges as punching elements a good idea ? If so, feasible ?
          PunchCutOpening.rb ? 😉

          %(#008000)[Mario C.
          Every rule has exceptions, but some.]

          1 Reply Last reply Reply Quote 0
          • mariochaM Offline
            mariocha
            last edited by

            @mariocha said:

            Is a HolePunch variant taking only the cut-opening edges as punching elements a good idea ? If so, feasible ?
            PunchCutOpening.rb ? 😉

            Ok, so as not to have anybody waste time over this, let it be known that I have done it. Well only proof of concept. Still a lot to do.
            It took a lot of reading of numerous post and I must thank TIG, TT, Dan, Driven, Jim, and others for their several replies to newbies questions and for their unscripted plugins from which one can learn a lot.
            Cookies to you all SU-Ruby masters. 😄

            %(#008000)[Mario C.
            Every rule has exceptions, but some.]

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

              Please note that this extension has some issues with v2017 entities' IDs etc - stopping it working properly.
              An update is in progress - please be patient...

              TIG

              1 Reply Last reply Reply Quote 0
              • H Offline
                hank
                last edited by

                Sounds like just what I need mariocha. Any updates? Could you post your rb?

                1 Reply Last reply Reply Quote 0
                • yourpasswordisY Offline
                  yourpasswordis
                  last edited by

                  Thanks for what looks like a great plugin, I'm here to report it's not working for me (Sketchup pro 2017 Win, tried with sketchup 2016). After following your instructions closely the plugin hangs for close to five minutes, then removes the component's original cut opening. furthermore the plugin doesn't create the second cutting face, it only fills in the original hole. I was sure to drag a new components form the component library every time I was trying to cut, as you've pointed out to many others on this thread.

                  I'd be happy to pay for support for this plugin but seeing as it's free I'll just have to hope TIG can help.


                  Capture.PNG

                  The difference between good enough and awesome is huge

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

                    Can you post a small SKP with a wall and cutting component window.
                    Otherwise it's all guesswork.

                    I suspect there's something wrong with your example window component.

                    To test this please make two 3d [two faced] walls - ensuring that their front faces are looking 'outwards'.
                    Now draw a smaller rectangle directly on a wall's face, give it a transparent material.
                    Next select the transparent rectangle and its edges [double-click it] and make it into a component.
                    In the dialog set it to glue and cut.
                    Name it something like "A_Window".

                    Now insert a second instance of it from the Component Browser [model tab] a,d glue it directly onto another wall.
                    At this point you should have two 'windows' on the walls which let you see into the walls' insides

                    Open the Ruby Console to see error-massages [if any].

                    Now use the Hole Puncher on each window in turn and see what happens...

                    TIG

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

                      I can replicate your issue.
                      At the moment I can't see what's happening...

                      I'm looking at it...

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • yourpasswordisY Offline
                        yourpasswordis
                        last edited by

                        TIG, thanks for the reply. I've tried your test (details below) and a couple different windows now; no luck. Sketchup file attached. I've seen the plugin used on tutorials/YouTube and could swear I'm doing it right.

                        @tig said:

                        To test this please make two 3d [two faced] walls - ensuring that their front faces are looking 'outwards'.

                        I made one wall by extruding a rectangle; ensuring the 'normals' faced outward. I grouped the wall then copied it in front of itself to create a common co-planar face. I tried using Hole Punch with a transparent rectangle cutting the co-planar face. The result was the removal of the cutting face (as before).

                        @lbert


                        Hole punch.skp

                        The difference between good enough and awesome is huge

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

                          Here's v3.0
                          http://sketchucation.com/pluginstore?pln=HolePunchTool
                          I have recoded it for v2017 compatibility***, and also signed it for all v2016/2017 loading-policies.

                          ***The glitch was caused by a change in the way v2017 handles exploded entities - references are now lost as the edges/faces get a new ID - unlike all earlier versions !
                          This has caused numerous issues across many plugins !
                          [I'm still fixing EEby... tools !]

                          Please test and feedback...

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • yourpasswordisY Offline
                            yourpasswordis
                            last edited by

                            Reporting back to say that 3.0 is not working, behaving same as before.
                            Furthermore the extension manager lists 'hole punch' and the accompanying 'DeBazier' as unsigned.
                            Ruby window shows no error, tried with a few different components.

                            The difference between good enough and awesome is huge

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

                              The HolePunch should report as fully signed.***
                              Although deBabelizer was not re-signed for v2017 - just v2016.

                              But of course this doesn't matter anyway, if your loading-policy is unrestricted.

                              It worked just fine with your example SKP.
                              ***But now I see the glitch again - so I suspect I messed up some file swaps within the RBZ whilst re-signing it !

                              So I have made v4.0, which now includes a fully signed deBabelizer, and I have treble-checked the various files and re-signed the HolePunch too...

                              Please feed back...

                              Get v4.0 here...
                              http://sketchucation.com/pluginstore?pln=HolePunchTool

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • yourpasswordisY Offline
                                yourpasswordis
                                last edited by

                                Hole punch 4.0 works in SU17
                                TIG for prime minister

                                The difference between good enough and awesome is huge

                                1 Reply Last reply Reply Quote 0
                                • pmolsonP Offline
                                  pmolson
                                  last edited by

                                  This is my favorite time saving plug in ever!

                                  Tig, I just wanted to make you aware of a behavior I have noticed in 2018 sketchup using latest holepunch download.

                                  If I work on a model for a while, could be a half an hour or a half a day, placing objects that i will be punching after I get them all placed and then start punching them 1 by 1 there is a substantial delay from the time I hit "punch" to the time it actually punches. Upwards of 5 to seven seconds.

                                  If I close the file and re-open it and start punching before i do anything else the punches then punch with virtually no delay.

                                  If I was to to start working on the model after re-starting without punching first the delay will re-establish itself.

                                  Not a big deal to me, because i normally place all my windows without punching and then punch them all when I have them in place so restarting once before I punch is not a big deal.

                                  Just thought you might like to know.

                                  p

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    trombe
                                    last edited by

                                    Hi,
                                    I wanted to try this script out, however checking the compatibility it only runs up to SU2017, however, pmolson, is saying he has it running on 2018, which is wonderful.
                                    After downloading and copy/pasting the script into the SU 2018 plug-ins folder, then opening SU 2018 Pro and testing, I cannot see any available evidence of the plug-in on the context menu after selecting the component - yes, the window component I made is set to "cut opening".
                                    Are you able to advise pmolson ?
                                    thanks in advance

                                    @pmolson said:

                                    This is my favorite time saving plug in ever!

                                    Tig, I just wanted to make you aware of a behavior I have noticed in 2018 sketchup using latest holepunch download.

                                    If I work on a model for a while, could be a half an hour or a half a day, placing objects that i will be punching after I get them all placed and then start punching them 1 by 1 there is a substantial delay from the time I hit "punch" to the time it actually punches. Upwards of 5 to seven seconds.

                                    If I close the file and re-open it and start punching before i do anything else the punches then punch with virtually no delay.

                                    If I was to to start working on the model after re-starting without punching first the delay will re-establish itself.

                                    Not a big deal to me, because i normally place all my windows without punching and then punch them all when I have them in place so restarting once before I punch is not a big deal.

                                    Just thought you might like to know.

                                    p

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

                                      @trombe said:

                                      After downloading and copy/pasting the script into the SU 2018 plug-ins folder, then opening SU 2018 Pro and testing, I cannot see any available evidence of the plug-in on the context menu after selecting the component - yes, the window component I made is set to "cut opening".

                                      Copying and pasting the downloaded file into the Plugins folder is not the correct way to install it. In fact, it doesn't install it at all. After downloading the RBZ file, go to Window>Extension Manager and click on Install Extension. Navigate to the downloaded file and click Open, then Yes.

                                      Etaoin Shrdlu

                                      %

                                      (THERE'S NO PLACE LIKE)

                                      G28 X0.0 Y0.0 Z0.0

                                      M30

                                      %

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        ARQUISAURIO
                                        last edited by

                                        FUNCIONANDO EN SU 2017!

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

                                          @arquisaurio said:

                                          FUNCIONANDO EN SU 2017!
                                          Almost certainly - with your 'Extension Loading Policy' set to be 'Unrestricted'.
                                          Casi con toda seguridad - la carga de su 'política de extensión' establecida para estar 'sin restricciones'

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            DSnodgrass
                                            last edited by

                                            I know that the last post to this thread was 3 years ago, but I'm wondering if this plugin still works for SU 2022?

                                            I've tried it but when I punch, the component glues to the inside of the BACK face rather than the outer of the front. Initially the component does glue to the front/bottom face but after the punch it inserts back the equivalent of the thickness of the ceiling.


                                            Screen Shot 2022-07-23 at 4.43.48 PM.png

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 10 / 10
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement