by TIG » Fri Jan 14, 2011 11:20 pm
Rich O'Brien wrote:Maybe it's the name...it frightens me 
What do you suggest? One of my longer tool names? MakeYourSelectedStandardCuttingComponentFormHolesInTwoFacedSurfacesLikeWallsEtc.rb Perhaps it does need 're-branding' - BUT it does do the holy-grail - ordinary cutting components that 'punch' through two faces... ANY advice welcome 
TIG
-

TIG
- Global Moderator
-
- Posts: 20275
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Rich O Brien » Fri Jan 14, 2011 11:22 pm
Du you want the video?
There's a frontroom and a backroom....reverse faces
-

Rich O Brien
- Administrator
-
- Posts: 12683
- Joined: Fri Oct 31, 2008 9:05 am
- Location: Broadford, Clare, Ireland
- Name: Rich O'Brien
- Operating system: Windows
- SketchUp version: 2017
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Advanced
-
by TIG » Fri Jan 14, 2011 11:23 pm
Rich O'Brien wrote:Du you want the video?
Yas pleeze! Ur spelchekr seemz tu b falti?
TIG
-

TIG
- Global Moderator
-
- Posts: 20275
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Edson » Sat Jan 15, 2011 12:33 am
TIG wrote:Thanks But... I fear that out of the millions of Sketchup users only ~100 have this new tool... which does what many have wished for......... 
I'll spread the word among my students. let's see if this number of users grows.
-

Edson
- Global Moderator
-
- Posts: 2816
- Joined: Mon Oct 22, 2007 1:46 pm
- Location: Porto Alegre, Brasil
- Name: Edson Mahfuz
- Operating system: Mac
- SketchUp version: 2019
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Gaieus » Sat Jan 15, 2011 10:05 am
Edson wrote:TIG wrote:Thanks But... I fear that out of the millions of Sketchup users only ~100 have this new tool... which does what many have wished for......... 
I'll spread the word among my students. let's see if this number of users grows.
And I have already been spreading the word: http://www.google.com/support/forum/p/s ... d106&hl=enOf course, I cannot do anything if the OT never comes back to check his topic and the reply out... 
-

Gaieus
-
- Posts: 27379
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by unclex » Fri Jan 21, 2011 12:42 pm
Help
it can not work with [ clf_shape_bender ]
after Punch loaded, run the [ clf_shape_bender ], SU Crashed!!!
-
unclex
-
- Posts: 88
- Joined: Fri Sep 18, 2009 12:28 pm
by Dave R » Fri Jan 21, 2011 1:39 pm
I get the same results as UncleX. Curious.
Etaoin Shrdlu
%
(THERE'S NO PLACE LIKE)
G28 X0.0 Y0.0 Z0.0
M30
%
-

Dave R
- Global Moderator
-
- Posts: 18147
- Joined: Tue Nov 13, 2007 11:52 pm
- Location: SE Minnesota
- Name: Dave R
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: woodworking
- Level of SketchUp: Advanced
by TIG » Fri Jan 21, 2011 1:52 pm
Dave R wrote:I get the same results as UncleX. Curious.
It is odd as there should be no connection... I have reproduced it too... HolePunch does add some observers to Definitions and any new definition that is added. Perhaps it's clashing with the way ShapeBender adds its new shape-bender component definition ? I am investigating... 
TIG
-

TIG
- Global Moderator
-
- Posts: 20275
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by TIG » Fri Jan 21, 2011 3:34 pm
Here is an updated version viewtopic.php?p=271170#p2711701.7 20100121 Observers are now first removed then added to avoid duplication and rare clashes with other scripts.******It appears that the way ShapeBender copies/adds component-instances/definitions and also uses 'make_unique' etc fell foul of the HolePunch definitions observers: a definition could occasionally get two of the same HolePunch observers added which really messed everything up big time! In this updated version the HolePunch definitions observer 'removes' the definition observer before 'adding' it to avoid having more than one of that observer attached to the same thing [usually it's not already there, but the .remove_observer() only returns true/false on success/failure so if it's not there to remove it doesn't cause a problem with the following code]. I've retested this with ShapeBender and now I haven't managed a glitch let alone a BugSplat [yet]. Please try it and report back... 
TIG
-

TIG
- Global Moderator
-
- Posts: 20275
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by unclex » Sun Jan 23, 2011 4:37 am
Thank U the bug is solved.
-
unclex
-
- Posts: 88
- Joined: Fri Sep 18, 2009 12:28 pm
by mariocha » Sun Feb 06, 2011 10:03 pm
Please try it and report back..
Yep, Shape Bender now works just fine, and Fredo Scale bend also, btw. One other thing to report though: ( I have the same problem with one face cutting compos.) If a component has some geometry outward of the cutting plane, like a overhanging sill for instance, no cutting or punching anymore. I noticed that the reglue option stays available even after having selected it to apply. Strange thing is that if a flush installed component has a part pulled out, all already installed instances stay punched. Not the ones installed thereafter. 
Mario C. Certified SketchUp Trainer, QC CA. Every rule has exceptions, but some.
-

mariocha
- Premium Member

-
- Posts: 296
- Joined: Wed Nov 21, 2007 3:00 pm
- Location: near Montréal, QC, CA
- Name: mario chabot
- Operating system: Mac
- SketchUp version: 2019
- License type: Pro
- SketchUp use: interior design
- Level of SketchUp: Advanced
-
by TIG » Sun Feb 06, 2011 11:20 pm
Mariocha Can you post am example SKP. I get no problems with cutting compo's that project outwards ? I need to see its cutting plane etc...  EDIT: I have managed to find a compo' with a protection face that didn't punch consistently. I fixed it thus: place the component on a wall. Edit it, Select All, Intersect with Model. Place new instances of the compo' and they will Punch Holes consistently... 
TIG
-

TIG
- Global Moderator
-
- Posts: 20275
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by mariocha » Mon Feb 07, 2011 4:29 am
...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.
Mario C. Certified SketchUp Trainer, QC CA. Every rule has exceptions, but some.
-

mariocha
- Premium Member

-
- Posts: 296
- Joined: Wed Nov 21, 2007 3:00 pm
- Location: near Montréal, QC, CA
- Name: mario chabot
- Operating system: Mac
- SketchUp version: 2019
- License type: Pro
- SketchUp use: interior design
- Level of SketchUp: Advanced
-
by TIG » Mon Feb 07, 2011 10:15 am
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 SKP Capture.PNG sill problm.skp
TIG
-

TIG
- Global Moderator
-
- Posts: 20275
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by mariocha » Mon Feb 07, 2011 2:19 pm
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.
Mario C. Certified SketchUp Trainer, QC CA. Every rule has exceptions, but some.
-

mariocha
- Premium Member

-
- Posts: 296
- Joined: Wed Nov 21, 2007 3:00 pm
- Location: near Montréal, QC, CA
- Name: mario chabot
- Operating system: Mac
- SketchUp version: 2019
- License type: Pro
- SketchUp use: interior design
- Level of SketchUp: Advanced
-
by TIG » Tue Feb 08, 2011 1:54 pm
Here's v1.8 viewtopic.php?p=271170#p271170Algorithm 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
-

TIG
- Global Moderator
-
- Posts: 20275
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by mariocha » Tue Feb 08, 2011 3:05 pm
Wow ! I knew you could do it. !! 
Mario C. Certified SketchUp Trainer, QC CA. Every rule has exceptions, but some.
-

mariocha
- Premium Member

-
- Posts: 296
- Joined: Wed Nov 21, 2007 3:00 pm
- Location: near Montréal, QC, CA
- Name: mario chabot
- Operating system: Mac
- SketchUp version: 2019
- License type: Pro
- SketchUp use: interior design
- Level of SketchUp: Advanced
-
by TIG » Tue Feb 08, 2011 8:46 pm
mariocha wrote: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
-

TIG
- Global Moderator
-
- Posts: 20275
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by mariocha » Wed Feb 09, 2011 12:57 am
Nice ! The edges of the cutting loop are still needed, right ?
Mario C. Certified SketchUp Trainer, QC CA. Every rule has exceptions, but some.
-

mariocha
- Premium Member

-
- Posts: 296
- Joined: Wed Nov 21, 2007 3:00 pm
- Location: near Montréal, QC, CA
- Name: mario chabot
- Operating system: Mac
- SketchUp version: 2019
- License type: Pro
- SketchUp use: interior design
- Level of SketchUp: Advanced
-
by TIG » Wed Feb 09, 2011 10:28 am
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
-

TIG
- Global Moderator
-
- Posts: 20275
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by TIG » Wed Feb 09, 2011 12:14 pm
Hot on the heels...  here's v1.9 viewtopic.php?p=271170#p271170The 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
-

TIG
- Global Moderator
-
- Posts: 20275
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by mariocha » Wed Feb 09, 2011 4:02 pm
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.
Mario C. Certified SketchUp Trainer, QC CA. Every rule has exceptions, but some.
-

mariocha
- Premium Member

-
- Posts: 296
- Joined: Wed Nov 21, 2007 3:00 pm
- Location: near Montréal, QC, CA
- Name: mario chabot
- Operating system: Mac
- SketchUp version: 2019
- License type: Pro
- SketchUp use: interior design
- Level of SketchUp: Advanced
-
by TIG » Thu Feb 10, 2011 9:20 pm
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.PNG HolePunchSill.skp
TIG
-

TIG
- Global Moderator
-
- Posts: 20275
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by TIG » Thu Feb 10, 2011 9:24 pm
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
-

TIG
- Global Moderator
-
- Posts: 20275
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Gaieus » Fri Feb 11, 2011 12:15 am
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! 
-

Gaieus
-
- Posts: 27379
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by mariocha » Fri Feb 11, 2011 5:04 am
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.
Mario C. Certified SketchUp Trainer, QC CA. Every rule has exceptions, but some.
-

mariocha
- Premium Member

-
- Posts: 296
- Joined: Wed Nov 21, 2007 3:00 pm
- Location: near Montréal, QC, CA
- Name: mario chabot
- Operating system: Mac
- SketchUp version: 2019
- License type: Pro
- SketchUp use: interior design
- Level of SketchUp: Advanced
-
by MartinK » Fri Feb 11, 2011 4:20 pm
Very helpful plugin. Thanks
-
MartinK
-
- Posts: 72
- Joined: Fri Mar 06, 2009 7:58 pm
- Name: Martin
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Intermediate
by compadre.lucas » Thu Mar 03, 2011 7:12 pm
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?
-
compadre.lucas
-
- Posts: 2
- Joined: Fri Feb 19, 2010 6:51 am
- Name: lucas rivera
by TIG » Thu Mar 03, 2011 7:20 pm
compadre.lucas wrote: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
-

TIG
- Global Moderator
-
- Posts: 20275
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Dave R » Thu Mar 03, 2011 9:22 pm
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
%
-

Dave R
- Global Moderator
-
- Posts: 18147
- Joined: Tue Nov 13, 2007 11:52 pm
- Location: SE Minnesota
- Name: Dave R
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: woodworking
- Level of SketchUp: Advanced
by Ad Machine » 5 minutes ago
-
Ad Machine
- Robot
-
- Posts: 2012
-
Return to Plugins
|