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

[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.
  • M Offline
    mariocha
    last edited by 7 Feb 2011, 03:29

    @unknownuser said:

    ...place the component on a wall. Edit it, Select All, Intersect with Model...

    Done that. Got a little better but not quite it yet: some weird "parasites" after Punch.
    Model joined; Frame is simply made of a box, Offset on a face and PushPull to make opening.


    sill problm-2.png


    sill problm.skp

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

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 7 Feb 2011, 09:15

      Mariocha

      Your wall had its back-face reversed which didn't help.
      Also there were some stray lines inside the Component [Xray mode to erase them].
      BUT most importantly - a punching component needs a loop of continuous edges to form the punching template: when you introduced a 'sill' it made two interrupted loops of edges... The fix is to inset the bottom/ends of the sill ~1mm so that the 'frame' still keeps its continuous loop and punches properly. You'll never notice that the sill isn't exactly aligned...
      See this image and updated SKPCapture.PNGsill problm.skp

      TIG

      1 Reply Last reply Reply Quote 0
      • M Offline
        mariocha
        last edited by 7 Feb 2011, 13:19

        Hey thanks. I will try that.
        One precision though. I forgot to say that the reversed back and the stray lines appeared after asking to punch. Before that it was a brand new file with brand new wall and frame, no mess up. πŸ˜„
        edit;
        So the loop must be made out of uninterrupted segments. No other line can butt to any one segment.
        Offsetting the sill sides is not practical, kills the Punch time saving. So I made the sill a group and it works. Hiding the "seam" lines helps making the frame and sill look as a whole.
        Hoping the script can be further enhanced to manage colinear lines on the cutting loop.
        i]edit-bis[/i];sill grouped.png
        Worrying about inset windows, made me further investigate and find the easy way to do any frames. Make the whole frame a group (so it can have any shape, protrusions, insets) then make the loop at the wall face position, select everything an make component. Punches very well.


        inset group and loop.png


        any frame.png

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

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by 8 Feb 2011, 12:54

          Here's v1.8 http://forums.sketchucation.com/viewtopic.php?p=271170#p271170
          Algorithm improved to find the Cutting-Component's 'cutting-loop[s]' vertices - to use for the matching with Punched-hole - this avoids glitches if multiple edges in the Z=0 plane - like projecting sill parts etc etc...
          [ πŸ˜‰ Mariocha - not need to fiddle with the geometry now...]

          TIG

          1 Reply Last reply Reply Quote 0
          • M Offline
            mariocha
            last edited by 8 Feb 2011, 14:05

            Wow ! I knew you could do it. !! πŸ˜„

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

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 8 Feb 2011, 19:46

              @mariocha said:

              Wow ! I knew you could do it. !! πŸ˜„

              I have completely recast the algorithm to work out the cutting >> punching 'hole[s]' edges - I thinks it's quicker AND now it should always 'punch' a hole the same shape as the 'cut' hole... πŸ˜„

              TIG

              1 Reply Last reply Reply Quote 0
              • M Offline
                mariocha
                last edited by 8 Feb 2011, 23:57

                Nice !
                The edges of the cutting loop are still needed, right ?


                loop still.png

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

                1 Reply Last reply Reply Quote 0
                • T Offline
                  TIG Moderator
                  last edited by 9 Feb 2011, 09:28

                  The cutting-component needs its cutting-edges defining, so that SUp knows what part of the cut-face to hide.
                  The hole punching simply mimics that set of cutting-edges, ignoring unneeded internal edges - just as SUp does when cutting...

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    TIG Moderator
                    last edited by 9 Feb 2011, 11:14

                    Hot on the heels... πŸ˜„ here's v1.9 http://forums.sketchucation.com/viewtopic.php?p=271170#p271170
                    The Context-menu code has been completely recast to avoid exacerbating the 'grayed-out items issue', that can occur when too many tools load/unload in/out of it. Now the tool only 'loads' once and it enables/disables its items depending on the selection - e.g. you always get 'Set Depth' enabled, you only get 'Punch' enabled [i.e. not grayed-out] if the selection contains suitable Component[s] and so on... πŸ€“

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mariocha
                      last edited by 9 Feb 2011, 15:02

                      Glad I donated. πŸ‘
                      But this new version makes things clearer to me.
                      I'd say there are 2 purposes for this pluging;
                      1-Punch holes in parts, like metal punching i.e. the case where compo shape = hole shape
                      2-Punch holes in walls, like for window openings i.e. where in some cases, the compo shape does not = hole shape.
                      Like in the case of a window in a wooden wall, the sill comes with the frame and should be included in the punch hole but in the case of a brick wall, the sill is part of the masonry and should not punch at all (but we need it to be part of the compo). An earlier version permitted that by not considering groups inside the compo for calculation.
                      The following is not right.


                      to sill or not.png

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

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        TIG Moderator
                        last edited by 10 Feb 2011, 20:20

                        Mario

                        If you look at the rear of a normally cut-component that is what the hole-punch duplicates.
                        In the case of a sill with projecting 'horns' IF these are a z=0 in the component definition they will cut a hole ?
                        If you move the 'horns' ~1mm in front of the wall face line they won't cut and then they won't punch ?
                        See this...HolePunchSill.PNGHolePunchSill.skp

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          TIG Moderator
                          last edited by 10 Feb 2011, 20:24

                          WARNING!

                          Someone noticed that if you select punching components from the Outliner the matching reveals don't auto-select with them - unlike if you do the selection manually ! It seems the 'observer' for the selection is broken in the API [not specifically this tool!] when the Outliner is used this way. Therefore if you want to select the punched-components and their reveals don't use the Outliner!

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • GaieusG Offline
                            Gaieus
                            last edited by 10 Feb 2011, 23:15

                            I've had really weird results lately - but I know my openings are also weird. I could fix them though and was in too much in a hurry to report here but once I have the time, I will collect them to (hopefully) improve the plugin.

                            Great tool! πŸ‘

                            Gai...

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              mariocha
                              last edited by 11 Feb 2011, 04:04

                              @unknownuser said:

                              move the 'horns' ~1mm in front of the wall face line they won't cut and then they won't punch

                              Ok, that should do just fine then. Thx.

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

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                MartinK
                                last edited by 11 Feb 2011, 15:20

                                Very helpful plugin. Thanks

                                1 Reply Last reply Reply Quote 0
                                • C Offline
                                  compadre.lucas
                                  last edited by 3 Mar 2011, 18:12

                                  This plugin caused me a very strange bug.
                                  I discovered that the DeBabelizer.rb causes sketchup to shut down when using the tool "paste in place".
                                  I don't know much about programing so I wouln't know what caused what. I have not been able to use this script, and so I wondor if anybody else had this problem?

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    TIG Moderator
                                    last edited by 3 Mar 2011, 18:20

                                    @compadre.lucas said:

                                    This plugin caused me a very strange bug.
                                    I discovered that the DeBabelizer.rb causes Sketchup to shut down when using the tool "paste in place".
                                    I don't know much about programing so I wouln't know what caused what. I have not been able to use this script, and so I wonder if anybody else had this problem?

                                    Debabelizer is used by many of my tools to translate text to a locale.
                                    How do you know it is DeBabelizer that is causing the crash ? If it has crashed ??
                                    Do you mean the crash happens with Edit > Paste_in_Place ?
                                    Do you have Ruby Console error messages you can share...
                                    This problem has never been reported before... the DeBabelizer tool clearly doesn't have anything to do with the Edit menu items anyway..... all it does is translate text strings in the file if the phrase has an entry in that tool's 'lingvo' file for your locale...
                                    Do you use any of my other tools that also have lingvos ?

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • Dave RD Offline
                                      Dave R
                                      last edited by 3 Mar 2011, 20:22

                                      I use Paste in Place frequently and have Debabelizer installed. Never had SketchUp shut down due to either.

                                      Etaoin Shrdlu

                                      %

                                      (THERE'S NO PLACE LIKE)

                                      G28 X0.0 Y0.0 Z0.0

                                      M30

                                      %

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        TIG Moderator
                                        last edited by 9 Mar 2011, 18:11

                                        Here's v2.0 http://forums.sketchucation.com/viewtopic.php?p=271170#p271170
                                        The Punched hole algorithm has been improved to cope with cutting-components that contain nested groups/components.

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          dbalex
                                          last edited by 9 Jun 2011, 00:28

                                          Just the plugin I needed, great work once more TIG!

                                          http://www.bocostudio.com

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

                                          Advertisement