Why don't you just go to http://www.thingiverse.com
http://www.thingiverse.com and do a search on "pcb box". I got dozens
of hits, many with Openscad source code included. Eg.
http://www.thingiverse.com/thing:13979/#files
http://www.thingiverse.com/thing:13979/#files . They may or may not be
exactly what you want but they offer great examples and can be used as
starting points for making other Things.
--
View this message in context: http://forum.openscad.org/Beginner-needs-help-with-project-tp12117p12130.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Hi again
I removed the offending lines at the end of each module and the
error went away
but I still have 2 problems ,
The inner box should cut out the center of the outer one but it doesnt , I
can understand if it cut out but not centrally because the corner of both
cubes have the same origin , the inner cube needs moving in the X,Y and Z by
the size of the boxes thickness , but its not cutting out at all and I dont
know why
and in answer to Michelle as to why not just go to thingiverse and download
a box?
Well then I wouldnt learn anything and that was the main object of the
excercise . If all I wanted was a box I can make one in a couple of minutes
in solid works but I was trying to learn to use Scad
Don
--
View this message in context: http://forum.openscad.org/Beginner-needs-help-with-project-tp12117p12131.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
I wasn't suggesting you simply download and print an existing box. I have
found that a great way to learn Openscad (or any programming language) is to
look at working examples of other peoples' code. I've learned lots from
reading Openscad code posted on Thingiverse. You said you were a beginner
so it wasn't clear if you knew about this resource or not. That's all.
--
View this message in context: http://forum.openscad.org/Beginner-needs-help-with-project-tp12117p12132.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
Hi
I found the answer to my own question , I had missed off the { and } from
the difference function in the last module
all I need to do now is center the two boxes relative to each other and I
should be getting closer
--
View this message in context: http://forum.openscad.org/Beginner-needs-help-with-project-tp12117p12133.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
@Michele
He( http://www.thingiverse.com ) has a nice way ( module
sblock(outs,ins,len) ) of making the screw holes:
2015-03-22 17:19 GMT+01:00 Michele denber@mindspring.com:
View this message in context: Re: Beginner needs help with project
http://forum.openscad.org/Beginner-needs-help-with-project-tp12117p12130.html
Sent from the OpenSCAD mailing list archive http://forum.openscad.org/
at Nabble.com.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
--
stempeldergeschichte@googlemail.com karsten@rohrbach.de
P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu
schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.
P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.
Enjoy!
Hi Michelle ,
I didnt mean to sound ungrateful , its just that pretty much most things
I saw on thingiverse
had only got an stl file and no Scad file but I can see now that if the
Scad file is available then looking at it should be very helpful
Don
--
View this message in context: http://forum.openscad.org/Beginner-needs-help-with-project-tp12117p12134.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
For mine, I set the screw holes to the diameter used to drill for a tap.
The 6-32 screws self-tap into that very nicely. The holes in the top of
the box then are the size to pass the screw. I found a table online
somewhere.
Lowering the number of sides in a hole can give nice hexagonal surfaces for
tapping into.
The one thing I didn't do (yet) on my test box that I would like, is to
have the bottom half nest into the top half. But so far it has been ok to
just have the two walls meet without any indexing.
On Sun, Mar 22, 2015 at 10:46 AM, donrecardo don@crystal-computing.co.uk
wrote:
Hi Michelle ,
I didnt mean to sound ungrateful , its just that pretty much most
things
I saw on thingiverse
had only got an stl file and no Scad file but I can see now that if the
Scad file is available then looking at it should be very helpful
Don
--
View this message in context:
http://forum.openscad.org/Beginner-needs-help-with-project-tp12117p12134.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
An example I have on thingiverse that is a nesting edge box for a pcb is
http://www.thingiverse.com/thing:150101, here's the scad file link:
http://www.thingiverse.com/download:291446
The scad code is set up with lots of params to resize. It's very basic
scad and an easy intro to boxen.
I'd be happy to help with any questions about it.
--tim
On Sun, Mar 22, 2015 at 11:51 AM, david vanhorn kc6ete@gmail.com wrote:
For mine, I set the screw holes to the diameter used to drill for a tap.
The 6-32 screws self-tap into that very nicely. The holes in the top of
the box then are the size to pass the screw. I found a table online
somewhere.
Lowering the number of sides in a hole can give nice hexagonal surfaces
for tapping into.
The one thing I didn't do (yet) on my test box that I would like, is to
have the bottom half nest into the top half. But so far it has been ok to
just have the two walls meet without any indexing.
On Sun, Mar 22, 2015 at 10:46 AM, donrecardo don@crystal-computing.co.uk
wrote:
Hi Michelle ,
I didnt mean to sound ungrateful , its just that pretty much most
things
I saw on thingiverse
had only got an stl file and no Scad file but I can see now that if the
Scad file is available then looking at it should be very helpful
Don
--
View this message in context:
http://forum.openscad.org/Beginner-needs-help-with-project-tp12117p12134.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
I am a relative beginner too, here is a first stab at something you can
start from:
module boss() {
h = 6;
r = 3;
$fn = 20;
difference() {
cylinder(h=6, r=3, center=true);
cylinder(h=7, r=2.5, center=true);
}
}
module pcbbox(l=30, w=25, h=1) {
co = 12;
union() {
difference() {
cube([l+3, w+3, h+14], center=true);
translate([0, 0, 3]) cube([l, w, h+15], center=true);
}
translate([(l-co)/2, (w-co)/2, 0]) boss();
translate([-(l-co)/2, (w-co)/2, 0]) boss();
translate([(l-co)/2, -(w-co)/2, 0]) boss();
translate([-(l-co)/2, -(w-co)/2, 0]) boss();
}
}
pcbbox(50, 40, 1);
On Sun, Mar 22, 2015 at 9:59 AM, Tim Deagan tim@deagan.net wrote:
An example I have on thingiverse that is a nesting edge box for a pcb is
http://www.thingiverse.com/thing:150101, here's the scad file link:
http://www.thingiverse.com/download:291446
The scad code is set up with lots of params to resize. It's very basic
scad and an easy intro to boxen.
I'd be happy to help with any questions about it.
--tim
On Sun, Mar 22, 2015 at 11:51 AM, david vanhorn kc6ete@gmail.com wrote:
For mine, I set the screw holes to the diameter used to drill for a tap.
The 6-32 screws self-tap into that very nicely. The holes in the top of
the box then are the size to pass the screw. I found a table online
somewhere.
Lowering the number of sides in a hole can give nice hexagonal surfaces
for tapping into.
The one thing I didn't do (yet) on my test box that I would like, is to
have the bottom half nest into the top half. But so far it has been ok to
just have the two walls meet without any indexing.
On Sun, Mar 22, 2015 at 10:46 AM, donrecardo <don@crystal-computing.co.uk
wrote:
Hi Michelle ,
I didnt mean to sound ungrateful , its just that pretty much most
things
I saw on thingiverse
had only got an stl file and no Scad file but I can see now that if the
Scad file is available then looking at it should be very helpful
Don
--
View this message in context:
http://forum.openscad.org/Beginner-needs-help-with-project-tp12117p12134.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer
The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".- Isaac. Asimov
I
*f you give someone a program, you will frustrate them for a day; if you
teach them how to program, you will frustrate them for a lifetime. *-
Anonymous
If writing good code requires very little comments, then writing really
excellent code requires no comments at all!- Ken Thompson
KC6ETE here!
On Sun, Mar 22, 2015 at 11:38 AM, Jerry Davis jdawgaz@gmail.com wrote:
I am a relative beginner too, here is a first stab at something you can
start from:
module boss() {
h = 6;
r = 3;
$fn = 20;
difference() {
cylinder(h=6, r=3, center=true);
cylinder(h=7, r=2.5, center=true);
}
}
module pcbbox(l=30, w=25, h=1) {
co = 12;
union() {
difference() {
cube([l+3, w+3, h+14], center=true);
translate([0, 0, 3]) cube([l, w, h+15], center=true);
}
translate([(l-co)/2, (w-co)/2, 0]) boss();
translate([-(l-co)/2, (w-co)/2, 0]) boss();
translate([(l-co)/2, -(w-co)/2, 0]) boss();
translate([-(l-co)/2, -(w-co)/2, 0]) boss();
}
}
pcbbox(50, 40, 1);
On Sun, Mar 22, 2015 at 9:59 AM, Tim Deagan tim@deagan.net wrote:
An example I have on thingiverse that is a nesting edge box for a pcb is
http://www.thingiverse.com/thing:150101, here's the scad file link:
http://www.thingiverse.com/download:291446
The scad code is set up with lots of params to resize. It's very basic
scad and an easy intro to boxen.
I'd be happy to help with any questions about it.
--tim
On Sun, Mar 22, 2015 at 11:51 AM, david vanhorn kc6ete@gmail.com wrote:
For mine, I set the screw holes to the diameter used to drill for a
tap. The 6-32 screws self-tap into that very nicely. The holes in the top
of the box then are the size to pass the screw. I found a table online
somewhere.
Lowering the number of sides in a hole can give nice hexagonal surfaces
for tapping into.
The one thing I didn't do (yet) on my test box that I would like, is to
have the bottom half nest into the top half. But so far it has been ok to
just have the two walls meet without any indexing.
On Sun, Mar 22, 2015 at 10:46 AM, donrecardo <
don@crystal-computing.co.uk> wrote:
Hi Michelle ,
I didnt mean to sound ungrateful , its just that pretty much most
things
I saw on thingiverse
had only got an stl file and no Scad file but I can see now that if
the
Scad file is available then looking at it should be very helpful
Don
--
View this message in context:
http://forum.openscad.org/Beginner-needs-help-with-project-tp12117p12134.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer
The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".- Isaac. Asimov
I
*f you give someone a program, you will frustrate them for a day; if you
teach them how to program, you will frustrate them for a lifetime. *-
Anonymous
If writing good code requires very little comments, then writing really
excellent code requires no comments at all!- Ken Thompson
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org