To install, you just put the "SOB.rb" file in the zip file under Plugins folder. This gives you a nice menu addon as seen in the following picture:

When you click on that menu option, you get a basic dialog box:

You enter some parameters and voila! You have a nice dox design. There are 3 choices for side panes: None, interclocking and stacked. You can see why I named them as such when you create the different designs: Interlocking has interlocking side panes, they are sturdy but sometimes hard to assemble. In stacking you first put the short sides' panels, then long sides' panels stack on top of that because of the tab adjustment.

Just tell me what you guys think. Can change dialog box stuff easily. Also I can upload it to SVN if you want it.

Pure awesomeness, one request :) could you add a design, or simply augment the 'none' one. It be cool if we had the SoB actual cases that are on sale at seeed.... They are only 2mm wider then the PCBs, and the holes are in the same locations....Great job on the script, gotta teach us how to do it..

arakis wrote:Pure awesomeness, one request :) could you add a design, or simply augment the 'none' one. It be cool if we had the SoB actual cases that are on sale at seeed.... They are only 2mm wider then the PCBs, and the holes are in the same locations....

OK, that is just a matter of editing some if statements, can do that by tomorrow night. They are only 2 mm wider, right? No other changes?

arakis wrote:Great job on the script, gotta teach us how to do it..

Why not! Had to read lots of f*cking manuals and examples for it. I guess it is karma, after telling so many forum members to go and RTFM. :D

I do freelance work writing plugins for SketchUp and came across SOB.rb in my news feed.

In SketchUp, all plugins share the same Ruby environment. As such, it's best not to use global variables and methods to avoid conflicts with other plugins.

I made a few small changes - mainly replacing all the global variables with module "instance" variables contained in the SOB module.

Also, the $exStrings.GetString(...) isn't likely doing anything for you unless you have added language translation files. It was never meant to be used by user-made plugins. In some instances, using GetString will fail on some people's SketchUp installation.

I have attached my modifications. If you need a diff, i can provide that also.

Thanks for forwarding. Yep, I was aware that they all share the same Ruby env, that was the reason for having a SOB module. Thought it can take care of global variables but I was wrong, nice to learn that!

$exStrings.GetString(...) is (was) for debugging, I had lots and lots of problems with different parts of it, some of them just stayed there. I'll hunt them down and delete them.

The only change I can see is changing global variables to "instance" variables (putting them inside module definition and changing $ to @), right? I compared it with the one I have, those are the only differences being shown.

I'll do the changes and commit them. I also saw some misspelled variable names, better to correct them too.

Hi, I think the plug in is very interesting and useful, but I have a problem with it.If I creater a SOB case of 60x37x3 mm the case I get is 62000x39000x3000 mm!Do I have somethink wrng in my configuration?I'm using SU 8.0.15158

Tochi wrote:Hi, I think the plug in is very interesting and useful, but I have a problem with it.If I creater a SOB case of 60x37x3 mm the case I get is 62000x39000x3000 mm!Do I have somethink wrng in my configuration?I'm using SU 8.0.15158

This is due to the fact that SU is really bad at woking with small dimmensons, so everything is scaled up 1000times, although when you are finished with your design, and wat to laser cut it, you'll need to scale it back down before exporting to SVG...