• 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
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
    TIG Moderator
    last edited by 14 Sept 2010, 13:33

    (c) TIG 2017
    Permission to use, copy, modify, and distribute this software for
    any purpose and without fee is hereby granted, provided the above
    copyright notice appear in all copies.

    THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
    IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.


    [flash=600,338:mnqzu4cg]http://www.youtube.com/v/G_5yc1-Hqo8[/flash:mnqzu4cg]
    Script:

    #HolePunchTool.rb

    it belongs in the ../Plugins/ folder...

    From v1.6 it also requires 'deBabelizer.rb' in the ../Plugins/ folder and
    any required locale lingvo files in the ../Plugins/TIGtools sub-folder...
    e.g. #HolePunchToolEN-US.lingvo, #HolePunchToolFR.lingvo etc...


    Overview:

    This script adds a new tool for glued/cutting component-instances.
    It allows them to punch linked 3D holes through the faces of double-skinned walls/roofs etc.
    It is accessed through the right-click context-menu 'Hole Punching...' sub-menu, which offers various items depending on the current Selection.


    For the tool's Usage instructions etc and Download/AutoInstall the latest version from the SCF PluginStore...
    http://sketchucation.com/resources/pluginstore?pln=HolePunchTool

    TIG

    1 Reply Last reply Reply Quote 0
    • K Offline
      Krisidious
      last edited by 14 Sept 2010, 13:41

      when I download the ruby it names it... "%23HolePunchTool.rb" should I change this to "#HolePunchTool.rb" or does it not matter?

      By: Kristoff Rand
      Home DesignerUnique House Plans

      1 Reply Last reply Reply Quote 0
      • T Offline
        TIG Moderator
        last edited by 14 Sept 2010, 13:45

        Works fine for me - it simply downloads with its original name. πŸ˜•
        What browser are you using?
        How did you 'save' it ?
        It's not so important... it has the # at the start of its name so that it loads very early and therefore it puts its sub-menu near the top of the context-menu items.
        I suggest you rename it with the #. πŸ˜’

        TIG

        1 Reply Last reply Reply Quote 0
        • K Offline
          Krisidious
          last edited by 14 Sept 2010, 14:07

          I'm using Chrome... I just clicked the link to download.

          I believe %23 is the symbol code for the # symbol. I think when some browsers follow a link they convert symbols to their native code.

          anyway thanks for the plugin Tig..,. I coulda used this like 5 years ago... I'll bill you for all the lost hours of work. you just shaved like 1 minute off every window I've ever made.

          By: Kristoff Rand
          Home DesignerUnique House Plans

          1 Reply Last reply Reply Quote 0
          • P Offline
            pilou
            last edited by 14 Sept 2010, 14:08

            Maybe there is Punch hole in the center of the Milky way πŸ˜‰

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

            1 Reply Last reply Reply Quote 0
            • P Offline
              pilou
              last edited by 14 Sept 2010, 14:22

              Does it possible to have an Set Angle in context menu?
              angle.jpg

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

              1 Reply Last reply Reply Quote 0
              • T Offline
                TIG Moderator
                last edited by 14 Sept 2010, 14:39

                Pilou... explain a little more...
                I guess you want to have a punched hole that isn't square to the wall's face !
                It wouldn't be easy...

                However, you can easily mimic it...
                First make a HolePunch and then draw over an Edge of the inner punched-hole so it forms a Face, now select just that Face and Move that Face to where you want and it [or you can Scale it to change one or more of its Edges] - the reveals' geometry will adjust to suit the inner-hole's new location or shape, then you can Erase just the Face and you have your distorted punched hole/reveals. This geometry will still auto-Select with the punching component-instance and it will move/delete with it etc etc...

                TIG

                1 Reply Last reply Reply Quote 0
                • R Offline
                  rv1974
                  last edited by 14 Sept 2010, 14:47

                  Hi Tig!
                  Coud you take a look at attachment. The script actually ungluesthe windows


                  nopunch.skp

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    TIG Moderator
                    last edited by 14 Sept 2010, 14:55

                    @rv1974

                    The problem is that the instance is exactly the same 'depth' as the wall - see the Ruby Console for its errors - I can probably trap for that easily... watch for updates...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      pilou
                      last edited by 14 Sept 2010, 14:56

                      @unknownuser said:

                      I guess you want to have a punched hole that isn't square to the wall's face !

                      no no, a square (rectangle) at the start and end πŸ˜‰
                      At least any form ! In fact that is a push pull inclined (multiple, if you have some components πŸ˜‰

                      angle2.jpg

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

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        TIG Moderator
                        last edited by 14 Sept 2010, 15:30

                        Pilou...

                        Do what I said...
                        Form a Face over the inner-hole by over-drawing an Edge.
                        Select just the Face.
                        Move the Face.
                        Select the Face and Delete it.
                        The hole/reveals are now 'sloping' in 3D.

                        To make 'splayed' reveals you can Scale the Face before Deleting it...Capture.PNG

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          TIG Moderator
                          last edited by 14 Sept 2010, 15:47

                          Following some feedback...
                          Here's v1.1 http://forums.sketchucation.com/viewtopic.php?p=271170#p271170
                          Components exactly matching wall-depth glitch fixed.
                          Zero depth in dialog trapped.
                          πŸ€“

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            pilou
                            last edited by 14 Sept 2010, 16:06

                            Ah yes, seems thas was also a video about this tricky tips πŸ‘
                            But all that is very "manual" πŸ˜„
                            Automatic is more pleasant πŸ˜‰

                            It's was this one β˜€
                            [flash=480,385:344mybyx]http://www.youtube.com/v/_ALbktAE9C8?fs=1&hl[/flash:344mybyx]

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

                            1 Reply Last reply Reply Quote 0
                            • P Offline
                              pilou
                              last edited by 14 Sept 2010, 17:13

                              Why don't put by default infinite depth, and just set depth if wanted? πŸ˜‰

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

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                david_h
                                last edited by 14 Sept 2010, 17:22

                                So far. . .so good.

                                Thanks TIG.

                                D

                                If I make it look easy...It is probably easy

                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  TIG Moderator
                                  last edited by 14 Sept 2010, 17:40

                                  @unknownuser said:

                                  Why don't put by default infinite depth, and just set depth if wanted? πŸ˜‰

                                  Because if there were no 'inner-face' to the wall how would it know when to stop extruding the reveals ?
                                  You could add say 1000m as the maximum punch depth and this would be remembered in the model... BUT then if there were ever a wall with no inner-face you'll get v_e_r_y deep reveals ! The 20"/500mm default seems a reasonable depth to start off with ?

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • E Offline
                                    EarthMover
                                    last edited by 14 Sept 2010, 23:52

                                    Is it only supposed to punch a hole if the punch depth matches the wall thickness exactly? If I put in a depth greater than the wall thickness, I get no punch....is this correct?

                                    BTW - Thanks TIG for finishing this up and publishing!


                                    Hole punch.jpg

                                    3D Artist at Clearstory 3D Imaging
                                    Guide Tool at Winning With Sketchup
                                    Content Creator at Skapeup

                                    1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      pilou
                                      last edited by 15 Sept 2010, 00:00

                                      @unknownuser said:

                                      Because if there were no 'inner-face' to the wall how would it know when to stop extruding the reveals ?

                                      Cousin Component Punch punches all the volume without to know the size? πŸ˜‰

                                      @unknownuser said:

                                      then if there were ever a wall with no inner-face

                                      don't launch the script ❓

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

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        TIG Moderator
                                        last edited by 15 Sept 2010, 00:34

                                        The way it works is you set the maximum punched depth [the default is 20"/500mm, but you can permanently change it for that model at any time] - just decide on a value knowing that all your various wall thicknesses are probably always less than that.
                                        The holes are them punched to match the actual wall thickness, IF it's =20" or less [the hole's reveals also match the inner-face material/layer] - BUT if you have a one-face wall [or a very thick wall] then the reveal depth is made as the maximum =20" [and the reveals then match the outer-face material/layer].

                                        The code that checks for the inner-face is still not perfect - but I am sleeping on it...
                                        Currently a 'ray' is cast internally from the front-face, centered on the cutting-component instance, until it finds a suitable face that's parallel and facing the right way. If there isn't one it then uses the default reveal size... It's currently possible to trip it up if your component also has a face/edge exactly on the center and at the same distance from the front-face as the real candidate for the inner-face - the ray can mistakenly find that instead of the required face and so it misses it and 'defaults the reveal depth... I suspect this is your case ???
                                        It is possible to test in other ways - for let's say faces' planes and points being 'on' them at the correct 'thickness'... so I just need to think up some better coding solutions - maybe tomorrow - I'm tired now........... πŸ€“

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • E Offline
                                          EarthMover
                                          last edited by 15 Sept 2010, 01:56

                                          For me, the raytest seems to miss the parallel wall in every case where my depth is greater than the wall thickness. I'm just using generic SU windows to test, but also tried with simple shape components I made myself to be sure there was no line in the direct center. Every time it seems to be punching through to the bounds of the punch depth. No worries though, I typically offset my walls to the same thickness, so I can just math the punch depth with that and all is well. Overall, it's a great solution for an age old ruby puzzler. πŸ‘

                                          3D Artist at Clearstory 3D Imaging
                                          Guide Tool at Winning With Sketchup
                                          Content Creator at Skapeup

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

                                          Advertisement