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.
    • TIGT Offline
      TIG Moderator
      last edited by

      @David

      You Component doesn't CUT a hole in its glued face, so how do you expect it to PUNCH one ??


      Capture.PNG

      TIG

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

        TIG beat me to it but note the changes I made to your model.


        Hole Punching Test.skp

        Etaoin Shrdlu

        %

        (THERE'S NO PLACE LIKE)

        G28 X0.0 Y0.0 Z0.0

        M30

        %

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

          Here's a future-proofed update.
          http://sketchucation.com/forums/viewtopic.php?p=271170#p271170

          TIG

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

            This updated version makes the lingvo files compatible with v2014.
            http://sketchucation.com/pluginstore?pln=HolePunchTool

            TIG

            1 Reply Last reply Reply Quote 0
            • G Offline
              garystan
              last edited by

              TIG :

                      Does the Hole Punchng Tool (plugin) require Sketchup 8 Pro ?  The reason I'm asking is because I have Sketchup 8 (Free).  When I downloaded this plugin, Sketchup said it was downloaded and installed.  But, apparently, it's not in my Plugins Folder (within Sketchup).   I checked and it is in the sdk folder inside of the Plugin Folder.  But, the documentation doesn't state where it's supposed to be downloaded to, or what version of Sketchup it works with.  With the Torus plugin, the documentation stated it would reside in the DRAW tab in Sketchup (which it is).
              
                                                                            garystan
              
              1 Reply Last reply Reply Quote 0
              • TIGT Offline
                TIG Moderator
                last edited by

                If you read the usage notes... πŸ˜’

                This tool only ever appears in the right-click context-menu.
                The enabled items vary depending on what is currently selected...
                From just 'set depth', to punch [if not punched], to undo/redo/unlink etc if it is punched...

                It is about to be reissued [tomorrow?] after reports of an observer glitch preventing Move etc [selection auto-undo] if the selection contains a punched component...
                This will be fixed shortly...

                TIG

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

                  Here's an update in the PluginStore....
                  http://sketchucation.com/pluginstore?pln=HolePunchTool
                  v2.8 Fixes an observer glitch whereby the whole selection was cleared if a punched instance/reveal was in the selection and the active tool was changed. πŸ˜’
                  Turned out to be a simple typo 😳

                  Please update your installation...

                  TIG

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

                    Great tool but mine isnt working. After trying to place my window component, I right click to select "punch hole" but the only option I can select is "set depth". Thanks for any help in advance!

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

                      Is your component definition [door/window/etc] set up to both glue AND cut ?
                      It must cut a hole in its glued_onto-face BEFORE it can ever be considered for a 'punch'...
                      If not, then it will never work...
                      AND please remember that a cutting component definition must have its 'blue' axis [shown as a blue-X] perpendicular to its main geometry - i.e. so it 'lays onto the face that it is to 'cut'.

                      Post an example SKP with wall/instances so we can see what you have set up wrongly...............
                      πŸ˜•

                      TIG

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

                        After inserting doors and windows, which do cut openings, in some particular cases I would like the cut face to be copied and visible on the parent face, i.e outside the compo. Do you think part of your plugin could be used to get that ?

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

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

                          @mariocha said:

                          After inserting doors and windows, which do cut openings, in some particular cases I would like the cut face to be copied and visible on the parent face, i.e outside the compo. Do you think part of your plugin could be used to get that ?
                          I don't fully understand the question...
                          If you UNlink the cutting instance - context-menu - then it is no longer connected to the instance anyway ?
                          Please explain what you mean/want = somewhat better...

                          Or perhaps ex-the-tool - how about using "intersect" between the instance and face, then "unglue" the instance ??

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • 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
                                            • 1
                                            • 2
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 9 / 10
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement