Results 11 to 20 of 21
Hybrid View
-
11-08-2014, 05:04 PM #1
Of course opinions are going to vary. But I would do this in OpenScad.
Code:height=30; n_boxes_in_x=5; n_boxes_in_y=7; size_of_box=30; wall_thickness=3; cube([n_boxes_in_x*size_of_box+wall_thickness,n_boxes_in_y*size_of_box,wall_thickness]); for(i=[0:n_boxes_in_x]) { translate([i*size_of_box,0,0]) cube([wall_thickness,n_boxes_in_y*size_of_box+wall_thickness,height]); } for(i=[0:n_boxes_in_y]) { translate([0,i*size_of_box,0]) cube([n_boxes_in_x*size_of_box+wall_thickness,wall_thickness,height]); }
-
11-08-2014, 05:23 PM #2
- Join Date
- Nov 2014
- Posts
- 15
-
11-09-2014, 12:50 PM #3
- Join Date
- Nov 2014
- Posts
- 15
The SCAD doesn't work either! Get's stuck at generating perimeters...
-
11-09-2014, 02:33 PM #4
It would be easier if you used metric units.
These are the numbers I used to get close to what you specified:
Code:height=45; n_boxes_in_x=7; n_boxes_in_y=7; size_of_box=21; wall_thickness=4; cube([n_boxes_in_x*size_of_box+wall_thickness,n_boxes_in_y*size_of_box,wall_thickness]); for(i=[0:n_boxes_in_x]) { translate([i*size_of_box,0,0]) cube([wall_thickness,n_boxes_in_y*size_of_box+wall_thickness,height]); } for(i=[0:n_boxes_in_y]) { translate([0,i*size_of_box,0]) cube([n_boxes_in_x*size_of_box+wall_thickness,wall_thickness,height]); }
Attachment 3354 ------- Attachment 3355Last edited by Roxy; 11-09-2014 at 02:43 PM.
-
11-09-2014, 04:00 PM #5
- Join Date
- Nov 2014
- Posts
- 15
Roxy, thank you for all of your help. I don't know what is going on, if I put your .stl in Slic3r, I can generate gcode. If I put your .scad in OpenSCAD, then export .stl, then go to Slic3r, it generates gcode fine.
HOWEVER, if I change the values at all to customize them in OpenSCAD, then export .stl, then I cannot generate code in Slic3r.
I would like to figure out why this is happening!
But what I actually need each little box needs to be 8.5mmx8.5mm square on the inside. The height needs to be 33mm. The total width of the thing must be around 158mm, so that should be 7x7 small boxes. Width of all walls 3mm should be fine.
THANK YOU!
-
11-09-2014, 05:15 PM #6
Most likely, you are not compiling and rendering the design with the new information. OpenScad (as a convenience to you) will do a best guess rendering of the source code to show you what it thinks it will generate. But, the design is not compiled and you are not ready to export the information into a .STL file yet.
Up on the Menu Bar of OpenScad, Do a Design / Compile & Render. Then export the generated information as an .STL file. That should slice without problems.
Assuming you get the .STL to export in a fashion where your slicer can digest it, Just tweak any of the numbers at the top to get it to look exactly how you want it. Just to make the code simpler... The size of the box ignores the thickness of the walls. The size of the box goes from the center of the wall to the center of the wall. And the height includes the thickness of the bottom plate. You should be able to work around those issues to get what your want.
Good luck....
-
11-09-2014, 05:24 PM #7
- Join Date
- Nov 2014
- Posts
- 15
-
11-09-2014, 05:30 PM #8
Do all the above... And post the .STL file. Let's see if I can slice what you generate.
Please explain to me how to...
Today, 12:15 PM in 3D Printer Parts, Filament & Materials