[Plugin] Hole Punching Tool

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby irwanwr » Wed Dec 28, 2011 11:19 am

greetings, sir.

the HPT works well when the window component exploded and applied HPT on the window's frame.
selecting all components of the window and move them altogether, moves the cut along with them. :D

but when HPT applied, some components were shifted backward from the wall.
HPT case.png
0
User avatar
irwanwr 
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby TIG » Wed Dec 28, 2011 11:22 am

Irwan

You do NOT need to explode subcomponents !
BUT there must be a continuous closed loop of edges on the face-plane for Sketchup to find something to make the 'cut-hole' with...
This can be a loop within a subcomponent OR a separate loop draw within the assembled parts.
So you must EITHER move the assembled parts inside the component-edit so that there is then a loop of edges on the face-plane OR you must add a new loop of edges [in your case a rectangle] into the component's contents that is on the face-plane [deleting the face that gets added and keeping the edges].
Using one of these methods means that a loop is detected when you glue the instance onto a face and therefore a hole is cut in the face [then if desired that loop can be used to also 'punch' the whole wall later on].

Why try to shift the component off the surface 1mm ?
I think you have confused an issue with 'projecting sills'...
If a window has 'horns' on its sills so that they project sideways on the face-plane then these will also 'cut' the face [like an inverted 'T' shape].
This is unimportant IF you are never going to 'punch' it.
BUT if you do a punch with such a component then it will make an unexpected hole through the wall because the sill's ends will punch through too!
To avoid this issue you simply need to adjust the windows sill geometry so that any parts of it that are on the wall face that are now offset by say 1mm inf front of the face, and adjust the remainder of the 'cutting-loop' to suit the required 'hole'.
Then the main rectangle of the window that you want to make the cut does so, and later any related punched reveals follow that loop ignoring the sills too.
Because the sill's ends are not now on the face-plane they are ignored for the purposes of any cutting [and therefore also ignored for any punching] - just like every other bit of geometry that is off the face-plane is not used for 'cutting'.
The important part is that there must be a loop of edges inside the component [or a subcomponent] to tell Sketchup where the component's 'hole' is to be formed...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby TIG » Wed Dec 28, 2011 11:27 am

In your 'exploded' version it glues/cuts then punches correctly as you have [re]located it on the wall face.
The reason that the adjacent 'faulty' and 'unfixed' component instance jumps is I suspect because it was confused as to which face you had it glued onto and which face it might then cut. I suspect that the 'punch' simply jiggled the data-base and it decided it was glued to the inner-face. IF your components are correctly made [i.e. proper cutting-loop on the face-plane, correctly oriented axes etc] then this should not happen...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby irwanwr » Wed Dec 28, 2011 11:59 am

In your 'exploded' version it glues/cuts then punches correctly as you have [re]located it on the wall face.

actually not, sir.
the second window is the original one. hence it has the original component's name instead of "component #1". the component #1 was made after i read about the sill and misunderstood it.
really glad the tool works very well. now it's my turn to improve the way i make components.

thank you, sir.
0
User avatar
irwanwr 
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby irwanwr » Thu Dec 29, 2011 3:25 pm

greeting, sir.

i've made another attempt to create a component that would work with Hole Punching Tool.
the tool cut the wall very well as expected.
yet, again i've made a mistake with the component create setting probably.
as shown by the image

HPT case.png

this time i've made the component with closed loop 1 cm above the window frame's plane.
and after applying HPT to the window's frame, the window shifted backward from the first wall plane.
i don't know what went wrong. i've tried to rebuild the window few more times. but still.

HPT case.skp
0
User avatar
irwanwr 
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby TIG » Thu Dec 29, 2011 7:45 pm

Several issues overlapping...

First you have a model that is a jumble of nested components/groups.
If you place a cutting component onto a face that is not in the current active entities context, then although it glues onto it, it won't 'cut' as it has no contact with the geometry in the other context.

Secondly, your 'problem' window component is made up of other components - these internal bits don't need any special 'behaviors'.
IF you want the window to cut the wall at the 'rectangle' that's just in front of the assembled frames etc, then leave it as a simple rectangle, don't weld it into a looped curve [unless you want any punched reveals to have smoothed edges], and you also don't need to make the rectangle into a component [or group], and it certainly doesn't need to be a component with any special 'behaviors' added to it - please leave it as plain geometry inside the cutting component - then it works for me when used inside a common context !
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby irwanwr » Fri Dec 30, 2011 10:36 am

finally made it, thank god.
thank you very much for the tool :D

Image 1.jpg


Image 2.jpg

:sketchstatic:
0
User avatar
irwanwr 
 

Re: [Plugin] Hole Punching Tool v2.0 20110309

Postby guanjin » Mon Jan 23, 2012 2:44 pm

TIG wrote: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? ? ? :roll:
0
I come from China, is to learn
User avatar
guanjin 
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby TIG » Mon Jan 23, 2012 3:05 pm

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...
;)
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby TIG » Mon Jan 23, 2012 3:12 pm

Here's Guanjin's Chinese lingvo file [Thank you!].
#HolePunchToolZH-CN.zip
Unzip it and place the file in the TIGtools folder in the Plugins folder...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby guanjin » Mon Jan 23, 2012 4:00 pm

TIG wrote:Here's Guanjin's Chinese lingvo file [Thank you!].
#HolePunchTooZH-CN.zip
Unzip it and place the file in the TIGtools folder in the Plugins folder...


Is still in English, can not display Chinese!!
0
I come from China, is to learn
User avatar
guanjin 
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby TIG » Mon Jan 23, 2012 4:06 pm

You made a spelling mistake in the name; I've corrected the posted version...
...TooZH... should have been ...ToolZH...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby guanjin » Mon Jan 23, 2012 4:29 pm

TIG wrote: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! :thumb: :thumb: :thumb: :thumb: :thumb:
0
I come from China, is to learn
User avatar
guanjin 
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby JQL » Mon Mar 19, 2012 3:55 am

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?
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby TIG » Mon Mar 19, 2012 11:55 am

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?
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby JQL » Mon Mar 19, 2012 1:08 pm

TIG wrote:
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!
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [Plugin] Hole Punching Tool v2.1 20110824 / No Suitable

Postby UncleMonkey » Mon Apr 09, 2012 6:47 pm

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
0

UncleMonkey 
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby TIG » Mon Apr 09, 2012 8:24 pm

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...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Hole Punching Tool v2.1 20110824

Postby UncleMonkey » Wed Apr 11, 2012 8:54 am

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
0

UncleMonkey 
 

Re: [Plugin] Hole Punching Tool v2.2 20120628

Postby TIG » Thu Jun 28, 2012 2:44 pm

Here's v2.2 viewtopic.php?p=271170#p271170
Fixed rare DefnsObserver Bugplat! onQuit with some DC coded edits.
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Hole Punching Tool v2.2 20120628

Postby baiduaiya » Thu Jan 24, 2013 8:17 am

Thanks TIG.
0

baiduaiya 
 

Re: [Plugin] Hole Punching Tool v2.2 20120628

Postby pbacot » Sun Feb 17, 2013 1:47 am

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.
0
MacOSX Mojave High Sierra SketchUp Pro v19 Twilight v2 Thea v2 PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] Hole Punching Tool v2.2 20120628

Postby TIG » Sun Feb 17, 2013 4:16 pm

@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...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Hole Punching Tool v2.2 20120628

Postby JQL » Thu Apr 11, 2013 10:29 pm

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:



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
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [Plugin] Hole Punching Tool v2.4 20130907

Postby TIG » Sat Sep 07, 2013 5:16 pm

Here's an update 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!]
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Hole Punching Tool v2.4 20130907

Postby JQL » Fri Sep 13, 2013 12:07 am

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
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [Plugin] Hole Punching Tool v2.4 20130907

Postby ArCAD-UK » Wed Sep 25, 2013 4:08 pm

Hi Tig, just downloaded 2.4 via the SCF loader and auto installed. Worked straight off and everything running as exected, but after closing SU and then restarting I get an immediate bugsplat. I've removed the HPT ruby and SU works (double checked). I see others don't have a problem with SU 2013 pro; where do I start to find the conflict as I would like this in my tool chest?

I've attached my plug list just in case you recognise the culprit :roll:
0

ArCAD-UK 
 

Re: [Plugin] Hole Punching Tool v2.4 20130907

Postby TIG » Wed Sep 25, 2013 4:50 pm

I have the same OS/SUp-version and most of those plugins [and many others] loading without issues with the operation of the HPtool, during a session and on a reopening of any SKP - either containing HP-compos or not etc ?
I am sure it is none of my/SketcUcation plugins, and also the su_, twighlight, tt_ and the two profile-builder files seem safe.
Start by looking at the other ??

I am puzzled. :?

Sounds like an observers clash...

Ensure that you have the latest version of all of these scripts installed...
Then if it still splats...

Then use the SketchUcation Plugin Store toolset's Plugins Manager to disable half of the plugins listed.
it's easiest to do it in alphabetical-order list, so you can keep track of what you are changing...
Reinstate the HPtool [.rb file]...
Restart and see if it works.
If so, swap the loaded/enabled & disabled 'halves' over [obviously leaving HPtool enabled - also never disable deBabelizer - that is used by HPtool and perhaps some other files...].
Restart SketchUp and see if that now splats.
If it splats, then we have the culprit in the loaded/enabled set.
Temporarily rename the HPtool .rb file in the Plugins golder with a final '!' [to disable it].
Restart and try disabling half of what's still enabled [leaving the HPtool enabled] and restart.
If it splats then the culprit is still loading, repeat as above disabling half at a time until you zoom in on the culprit.
If it does NOT splat then the culprit is in the partial set you last disabled, so re-enable half of those, restart to test etc...
Repeat till the culprit is found.
If there's not one I am stumped !

It should only take a few iterations to find what's clashing...

Let me know what's causing the issue ?
Then we can look to correct it...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Hole Punching Tool v2.4 20130907

Postby ArCAD-UK » Wed Sep 25, 2013 8:52 pm

Hi Tig, I should have guessed the conflict is in add_hidden_layer which is quite useful but it was also a legacy file from here... http://sketchuptips.blogspot.de/2007/08 ... layer.html. Between the two HPT wins but it would be nice if AHL could be fixed easily.
0

ArCAD-UK 
 

Re: [Plugin] Hole Punching Tool v2.4 20130907

Postby TIG » Thu Sep 26, 2013 9:54 am

Jim's AHL is an old script [~6yrs] - it does some pretty simple stuff but has no observers, or other on-load code at all, except for setting up it's item in the menu.***

I am at a loss to see what is happening to cause such a clash/splat... :?
The HPT has no layer manipulations and nothing that I can see to clash at all...
When I add AHL to my Plugins folder and restart SketchUp I get no issues at all when opening SKPs - without without HP-compos etc !!

As an alternative - there might be a similar tool within Didier Bur's 'Layer Manager'?

Here are some possible 'fixes' for AHL - which of course I can't test because I can't get it to break ! :roll:
Try these in this order until you get a resolution ???
***The menu item creation is set up somewhat oddly:
Code: Select all
unless file_loaded?( "add_hidden_layer.rb" )
    UI.menu.add_item("Add Hidden Layer") {AddHiddenLayer.start}
    file_loaded("add_hidden_layer.rb")
end
so try rewriting it as:
Code: Select all
unless file_loaded?(__FILE__)
    UI.menu("Plugins").add_item("Add Hidden Layer"){AddHiddenLayer.start()}
end
file_loaded(__FILE__)
Then restart SketchUp and see if it starts OK with AHL & HPT loaded...
Since AHL loads after HPL try renaming its .rb file with a leading # so that it loads beforehand - this might avoid the issue...
0
TIG
User avatar
TIG 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: Ezio13, Isaynoue, juju, Khaym and 18 guests

Visit our sponsors: