• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ 30% Off | Artisan 2 on sale until April 30th 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.
  • I Offline
    irwanwr
    last edited by 30 Dec 2011, 09:36

    finally made it, thank god.
    thank you very much for the tool πŸ˜„

    window 1 cm below plaster

    wall punching window through


    6 x 17 Gg Bandung Jl Amaliun + Denah 2.skp

    1 Reply Last reply Reply Quote 0
    • G Offline
      guanjin
      last edited by 23 Jan 2012, 13:44

      @tig said:

      To make [or edit] a locale file look in the ../Plugins/TIGtools/ subfolder.
      There are several #HolePunchTool...lingvo files.
      Copy the base file #HolePunchToolEN-US.lingvo as #HolePunchToolIT.lingvo
      for ITalian.
      To find your exact locale 'code' type/copy&paste this in the Ruby Console
      Sketchup.get_locale.upcase
      This 'code' then goes on the end of the file's name, before .lingvo in place of 'EN-US'.
      Edit the new file and you'll see lines of code like this:
      Exiting.<==>Exiting.
      The text to the left of the <==> is the hard-coded English version and to the right the translation - obviously in the English lingvo file it's the same words!
      Change the right-hand side to your locale translation, keeping punctuation and spaces etc if any, so for an IT version you might have.
      Exiting.<==>VerrΓ  chiuso.
      Complete your translations and then save the file.
      When you restart Sketchup the tool should display in the locale language as it'll automatically find the new file.
      If you find some text that's wrongly translated, then check the lingvo file and edit it.
      If you find that some text has not translated, then check the lingvo file and fix it - if the text is not actually in the file then let me know as sometimes bits of hard-coded text and the lingvo text mismatch - although I think that this one is pretty solid.

      TIG hello:
      I translated the text for the ZH-CN, tool display in English? ? ? πŸ˜’

      I come from China, is to learn

      1 Reply Last reply Reply Quote 0
      • T Offline
        TIG Moderator
        last edited by 23 Jan 2012, 14:05

        @unknownuser said:

        I translated the text for the ZH-CN, tool display in English? ? ?

        Is this a question?
        Or is it a statement ?
        You are free to translate any tool's linvgo into Chinese [although some have been translated already].
        All I ask is you zip the new lingvo file and post it in the tool's thread with an explantion, so others can use it too, and I will then package it with any future updates of the tool too...
        πŸ˜‰

        TIG

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by 23 Jan 2012, 14:12

          Here's Guanjin's Chinese lingvo file [Thank you!].#HolePunchToolZH-CN.zipUnzip it and place the file in the TIGtools folder in the Plugins folder...

          TIG

          1 Reply Last reply Reply Quote 0
          • G Offline
            guanjin
            last edited by 23 Jan 2012, 15:00

            @tig said:

            Here's Guanjin's Chinese lingvo file [Thank you!].[attachment=0:2ftu9qht]<!-- ia0 -->#HolePunchTooZH-CN.zip<!-- ia0 -->[/attachment:2ftu9qht]Unzip it and place the file in the TIGtools folder in the Plugins folder...

            Is still in English, can not display Chinese!!

            I come from China, is to learn

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 23 Jan 2012, 15:06

              You made a spelling mistake in the name; I've corrected the posted version...
              ...TooZH... should have been ...ToolZH...

              TIG

              1 Reply Last reply Reply Quote 0
              • G Offline
                guanjin
                last edited by 23 Jan 2012, 15:29

                @tig said:

                You made a spelling mistake in the name; I've corrected the posted version...
                ...TooZH... should have been ...ToolZH...

                tig I too admire you, I was too stupid, I want to translate all your tools in China to promote! πŸ‘ πŸ‘ πŸ‘ πŸ‘ πŸ‘

                I come from China, is to learn

                1 Reply Last reply Reply Quote 0
                • J Offline
                  JQL
                  last edited by 19 Mar 2012, 02:55

                  I'm new to sketchup but obviously I realized already that half its potential is due to people like you. So thank you!

                  This tool immediatly struck me by its usefulness, (well it sort of punched me in the nose, actually).

                  It still lacks one thing to be perfect though, (not that I am complaining or anything, I don't wanna be punched again):

                  You clearly state that the inner walls must be paralel to the outer ones. However, would it be very hard to make the tool work even if they're not?

                  To put in other words, could one use this tool in a wall made of Joint-pushed-pulled loft surfaces?

                  www.casca.pt
                  Visit us on facebook!

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    TIG Moderator
                    last edited by 19 Mar 2012, 10:55

                    JQL
                    At the moment it is a 'wall punching tool'... and walls have a front and a back face that are parallel...
                    Ti allow other permutations gets very complicated - as you will find if you try to PushPull a shape on an outer face it will not punch an inner face if it's not perpendicular to the push/pull direction [i.e. parallel with the original face]... You can get around it by pulling it further, intersecting the new form with the back face and erasing the unwanted bits to leave a hole - but this is pretty complex to code in...
                    A JPP'd pair of faces should be parallel.
                    If the punching spans more than one facet you'll only get the inner hole in the most 'central' one.
                    Best to do a second JPP, intersect and erase unwanted bits?

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      JQL
                      last edited by 19 Mar 2012, 12:08

                      @tig said:

                      Best to do a second JPP, intersect and erase unwanted bits?

                      Thought so... If it isn't easy to do "by hand" it should be very hard to automate. The work around I used was to insert a volume inside the window component in a separate layer. Then I intersected the inner wall with the component and removed what I didn't want. I then hid the separate layer of the volume. To close the walls I had to make the component unique and draw the necessary lines. Repeat the process for the other windows... Hate complex shapes.

                      It will be an headache to change the window positions later and not being able to drag the inner hole with it.

                      I will try to find a tool that "drapes" a hole in a surface in the direction of a given face/component. It would be cool if it could also "drape" a fill in the hole after, so I could easily heal the face again at a much later time if i need to... maybe by extending all the lines in the surface. There should be something like that.

                      Any way thanks for your excelent tools and your unbelievably fast answer! That I just didn't expect!

                      www.casca.pt
                      Visit us on facebook!

                      1 Reply Last reply Reply Quote 0
                      • U Offline
                        UncleMonkey
                        last edited by 9 Apr 2012, 17:47

                        Hi, TIG,

                        I'm using SU8 free, on a MacBook Pro Core Duo 1.83 GHz, 1.5 GB Ram, OS 10.6.8. with latest Java patch. The #HolePunchTool.rb is located at
                        /Library/Application Support/Google SketchUp 8/SketchUp/plugins along with deBabelizer.rb, and the various .lingvo files are in plugins/TIGtools.

                        In the past I've sometimes been able to use the Hole Punching Tool to great advantage, but not now. No matter what I do, I get the message "No Suitable Punching Component(s) Selected. Exiting."

                        This happens both with the actual window I'm trying to use, and with a test component that's just a rectangular prism. Both are set to glue and cut hole. I've tried pasting the window/prism inside the editing context of the walls, exploding the wall component before trying to punch, and just positioning the window component on the wall without opening either. Tried selecting both punching component and target, or only component. Nothing helps.

                        I know I'm missing some really simple point here, and it's embarrassing to ask you, but I can't seem to figure it out on my own, and the advantages of your tool are irresistible. Thanks for saving countless people countless hours of intersecting and erasing, and for your help with this.

                        David


                        This is the whole problem, in a file reduced to the relevant elements only.

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          TIG Moderator
                          last edited by 9 Apr 2012, 19:24

                          Your window has its insertion-point [axes] on its back corner, not the front - where it might normally be put.

                          It also is placed onto the wall's inner-face - not its outer-face - so there's nothing to be punched, as it punches backwards from the component, expecting to meet an inner-face.
                          If you move the instance onto the outer-face and reglue it to that, then it will punch a hole through both faces of the wall, although at that point the window is then balanced on the very front of the wall.

                          May I suggest that you relocate the window's axes so that it cuts any wall at the correct place, when you insert it on the outer face, as intended by the entire concept of 'cutting-components'.

                          Also having a cutting-component made of lots and lots of subcomponents will take ages to work out the cutting/punching 'hole'.
                          Try exploding nested geometry to speed it up.

                          Basically you are making your cutting-component too complex and with strangely placed axes...


                          Capture.PNG

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • U Offline
                            UncleMonkey
                            last edited by 11 Apr 2012, 07:54

                            Many thanks, TIG! I had completely forgotten how axes placement affects cutting and punching. I am thinking that as a general rule, it might be best to start out with punching components reduced to the perimeter only, and when they're placed to my satisfaction, open one to edit all and then insert the subcomponents. (My reason for wanting to keep them unexploded is so I can get an easy count of how many to put in my BoQ.)

                            The amount and quality of effort you and others like you (Gaeius, for example) put into helping us struggling beginners is probably the best thing about SketchUp. Thanks again!

                            David

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              TIG Moderator
                              last edited by 28 Jun 2012, 13:44

                              Here's v2.2 http://forums.sketchucation.com/viewtopic.php?p=271170#p271170
                              Fixed rare DefnsObserver Bugplat! onQuit with some DC coded edits.

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                baiduaiya
                                last edited by 24 Jan 2013, 07:17

                                Thanks TIG.

                                1 Reply Last reply Reply Quote 0
                                • pbacotP Offline
                                  pbacot
                                  last edited by 17 Feb 2013, 00:47

                                  I would like to use this tool, but other than a couple successes, my experience so far has been about 50/50 the window moves to the inner wall or SU crashes.


                                  hole punch test.skp

                                  MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    TIG Moderator
                                    last edited by 17 Feb 2013, 15:16

                                    @Peter

                                    I can get it to flip faces, but only if I put the cutting window component neat the top of the wall, and the inner wall-face has a lower top.
                                    This means that the hole/reveals cut are incomplete and something goes wrong...
                                    I'll look at it sometime when I am less busy... but meanwhile try and check that the hole the component will cut falls fully onto the inner wall-face...

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      JQL
                                      last edited by 11 Apr 2013, 21:29

                                      Dear TIG,

                                      I'm divided between using Hole Punch tool or Double Cutting Components to create openings.

                                      I've attached an image and .skp with details:

                                      http://www.casca.pt/varios/holepunchtool.jpg

                                      If Hole Punch Tool could automatically create steps 4 and 5 on image, we could have the best of both worlds.

                                      If by any chance you were able to adapt the observers(!?) you use to connect faces and components, and make them connect both components as in step 7,then Hole Punch Tool would be, in my modest opinion, a revolution in the way people model windows in Sketchup.

                                      Of course I'm totally incapable of coding, so I'll be looking forward for your reply... ansiously!

                                      Best regards,

                                      JQL


                                      Sketchup File Used for "wishlist"

                                      www.casca.pt
                                      Visit us on facebook!

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        TIG Moderator
                                        last edited by 7 Sept 2013, 16:16

                                        Here's an update http://sketchucation.com/forums/viewtopic.php?p=271170#p271170

                                        It cuts through multi-leaf walls and also into groups onto which a cutting instance is glued [but do NOT copy grouped punched-components because the reveals will not remain inside the group!]

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          JQL
                                          last edited by 12 Sept 2013, 23:07

                                          Tig,

                                          I'm sorry for being so persistent but, would it be possible if the plugin would turn the created hole into a "hole cutting component" too? It could then be glued to the opposite face of the wall and be easily manipulated...

                                          Thanks for your unbelievable work and sharing! Best regards,

                                          JQL

                                          www.casca.pt
                                          Visit us on facebook!

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

                                          Advertisement