@unknownuser said:
Sure and have another plugs?
I'm going to have to steal you picture, for the plugin thread. Hope you don't mind. It's a really good example.
@unknownuser said:
Sure and have another plugs?
I'm going to have to steal you picture, for the plugin thread. Hope you don't mind. It's a really good example.
Cool Pilou! I just grabed Radial Move and the english version of your Eclate_Deplace plugin. I had the orginal in French, which I don't speak.
Tried mine and your plugin with a box. I will start a new thread with my plugin, so it will be put in the index and people can find it.
How about this? I had some code that did something close and did a quick mod. The thickness, you will have to manually change in the ruby at the top. You start with 2D faces, select all and then use the plugin.
ky_Group_PushPull_2DFaces.rb
From you initial picture of the simple wall, I can think of two methods. 1)You can remake the faces with a plugin: http://www.smustard.com/script/MakeFaces 2) or you can try cutting with a face. Copy/move one of the end faces, instead of using lines. Then when you do the 1st group, it will be complete. Of course the remainder will still be without face, but you could have made a copy of the orginal before grouping.
I got started, by watching Chris Fullmer's video tutorials on youtube. They helped me out alot, so I highly recommend them: http://www.youtube.com/user/ChrisFullmer#g/u
-Kwok
Not a plugin, but there is a free software that does generate and lays out the parts for the box. The output is pdf. I did convert their sample pdf to dxf a while back. And imported it into sketchup. One thing to note is that, it's not layed out like you would expect, so hard to figure out when trying to actually assemble the box.
http://rahulbotics.com/personal-projects/boxmaker/?boxmaker/
@kolem said:
in a quadrangular that isn't co-planar you need an edge going across it so it will create the 'face', is there any way to flip the edge, i saw in Google's API, Sandbox you can but the file is *.rbs
Can't you just get the endpoints and redraw the edge? You can actually flip an edge without redrawing it, but it's much more complicated.
-Kwok
CodyV1,
Some of the model airplane guys use sketchup to make plans for model airplanes. They use foam sheet which is a cheap, easy way to make models. You basically lay the parts out flat and print out a top view to pdf (usually tiled). The pdfs are printed out on paper and used as templates to make the parts. Check out these threads:
http://www.rcgroups.com/forums/showthread.php?t=1084702
http://www.rcgroups.com/forums/showthread.php?t=1201689
The guys at the phlatforum take it a step farther using cnc. Here is a link to their picture gallery, which shows some nice models made out of foam sheet: http://www.phlatboyz.com/pictures/
-Kwok
Interesting! I see what you guys are doing now and learned something. -Kwok
If you do it that way, then you would have to advance the counter and update for both loops. Like Todd said, you only have to do the outer loop, because it can't finish until all nested loops do.
-Kwok
Hi tomot,
The Progress Bar is an excellent plugin. Thanks Todd! I just recently added it to 2 of my plugins. Try the code below. I just added 4 lines. Basically you just make a new progress bar and place a counter/update command in your loop of interest. Oh, and I guess you need the require statement at the beginning: require 'progressbar.rb'
-Kwok
if( $type == "Tile Random Thickness" )
z = 0
pb = ProgressBar.new($vpanes,"Processing Panes")
1.upto($vpanes) do |i|
x = ($vtile*i)+(i*$space)
1.upto($hpanes) do |j|
y = ($htile*j)+(j*$space)
o = $pt3.offset($hVec, y - $space).offset($vVec, x - $space)
pt1 = o.offset($hVec, -$htile)
pt2 = o.offset($vVec, -$vtile)
pt3 = pt1.offset($vVec, -$vtile)
#make the geometry
face = entities.add_face o, pt2, pt3, pt1
face.material= Sketchup;;Color.new( rand(255), rand(255), rand(255))
face.reverse!
face.pushpull ($tthick+rand(20))
end
z+=1
pb.update(z)
end
end #if
@dave r said:
@kyyu said:
... It doesn't do much with that file either, except add one guide point?
I tried it on an ungrouped 3D pushpulled rectangle and also not bug splat. So could be something not compatable with the latest version of sketchup.
Why would you use it on an "ungrouped 3D push/pulled rectangle"? The plugin is intended to move components away from each other to create an exploded view of this sort.
Because a few post up, Box said he was getting bug splats on everything; even with a simple cube. So I tested it, but maybe he meant a cube made of grouped sides? Anyways, I was checking for bug splats and didn't find any. But, like I noted, I'm using v7.0 of sketchup.
@unknownuser said:
Anyone experiencing Bugsplats with SU7.1 and this plugin?
Haven't used since last SU update now it Bugsplat everytime. I've attached the model if anyone want to see if it's just me?
I know i have the components nested in a component but use this plugin when not nested
It doesn't bug splat for me, but I am still using SU v7.0.10247. It doesn't do much with that file either, except add one guide point?
I tried it on an ungrouped 3D pushpulled rectangle and also not bug splat. So could be something not compatable with the latest version of sketchup.
@billwheaton said:
Thanks, that's a great help.
@thomthom said:
group.transform!(t)
Then you have moved that by a certain distance.
If you want to move it back to its original position you can use the inverse transformation.
group.transform!(t.inverse)
Ok... so suppose you didn't transform it in the first place what would be inferred by [ruby:1gvc83k7]group.transform!(t.inverse)
group.transform!(t.inverse)
?Because that is what it looks like its doing in the section above. that might be why TIGs got "### put into right place ???" as a comment. I'd have to ask him of course.
I recently had to learn this, myself. So here is my take on this. Maybe it will make more sense with an anlogy to multiplying numbers instead of matrices. So, a matrix inverse is analoguous to the "Multiplicative Inverse of a Number" or also called "Reciprocal".
http://www.mathwords.com/m/multiplicative_inverse_of_a_number.htm
If there is no transformation than the transformation matrix is the identity matix (analoguous to the number 1)
So using this analogy and assuming the tranformation is say 5, we have this equation for what TIG is doing:
5 * (1/5) = 1
But if there was never a transformation to begin with, then the equation would just end up like this:
1 * (1/1) = 1
-Kwok
@eco_artbarn said:
...
$kyyu_s4t = 3.mmcan i just open up the plugin in note pad and change that line to make it do that permanently?
...
Cool! Glad it's working. Yes, you can just edit it, like a text file. -Kwok
I used bounding box intersection in my Slots 4 Tabs plugin. How about using volume to see if they intersect?
b1 = sel[0].bounds
b2 = sel[1].bounds
bb = b1.intersect b2
puts bb.valid?
puts bb.width * bb.height * bb.depth
Hi eco_artbarn,
Ok, I've fixed it and should now be working for metric. The 1st post has been updated with v1.1. This plugin is based on a whole string of assumptions and metric just doesn't work 100% of the time. But the bad news is your parts have a problem, I think. At least on my computer. It's the 1st time I have seen it massively fail and deform the part, instead of just giving an error message and stopping. Using 3.mm worked on my test 3 mm file, but not on yours. For some strange reason your 3mm is slightly different than what my computer draws. See the picture below. My coversion is exactly what the goggle calculator shows. Yours is not. If I type in exactly $kyyu_s4t = 0.11817322834643, then your part works. Otherwise massive failure. Just hit undo. I've stepped through it, but have no clue. One second it is fine and then next step, the faces are fractured and many bits gone. Possibly, your computer will not have a problem, if it's all consistant there.
Oh, if you want to measure the edge yourself, just select the edge and type this into the ruby console "Sketchup.active_model.selection[0].length"
-Kwok
@eco_artbarn said:
hey kwok,
great idea
though when i do all the steps no slots are created
any suggestions?cheers
Hi. I was going to ask if they were groups, but I just checked and you would have gotten an error message. If you can post a sample file, I will take a look at it. Or you can give my test file a try:
-Kwok
Yes, I agree, auto tabs would be cool. So little time, and some many plugins to write. -Kwok
This plugin automatically makes mating slots for a part with tabs.
@unknownuser said:
Copyright(C) 2010, kyyu
All Rights Reserved
Permission to use, copy, modify, and distribute this software for any purpose
and without fee is hereby granted, provided this notice appears in any 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.Name: Slots 4 Tabs
Version: 1.1
SU Version: 7.0
Date: 06-02-2010Description: Automatically makes mating slots for a tabbed part
Usage: Select both the parts (each grouped) and right click context menu ( [kyyu]/Slots 4 Tabs )
* Plugin will automatically detect which part is which
* Parts should be place in proper perpendicular, intersecting position
* Parts are assumed to be flat plates, thickness same as tab height
* Tab height needs to match expected thickness exactly (default is 0.25 inch)
* How to change thickness value:
1) Type for example "$kyyu_s4t = 0.25 or 3.mm" into the Ruby Console. Will be good for entire SU session.
2) Or change the default permanently, a few lines down in the code.
* Plugin automatically defaults to the move tool when done. You can comment this out, if not wanted.History:
1.0 (05-27-2010) - first version
1.1 (06-02-2010) - fixed some metric bugs=end
[flash=554,406:wn4hl47m]http://www.youtube.com/v/zIjcqTf-hxI[/flash:wn4hl47m]
New version 1.1 (fixed some metric bugs)
Slots_4_Tabs (0.25 inch test file).skp
Slots_4_Tabs (0.125 inch test file).skp
Slots_4_Tabs (3mm test file).skp
-Kwok