OpenSCAD Free Computer Aided Design Program

curiouscarbon

Science Penguin

This free program lets you design your solar rack or battery pack by writing a text file that describes it, and the 3D model is automatically generated from the description text file.

For example, to make a battery cell all you need to do is type cube([200,100,50]);

This will make a rectangular prism of dimensions 200 x 100 x 50 (mm).

Another example, to move the battery cell, use translate([200,0,0]) just before the cube command. This will move it 200 (mm) in the X axis before placing it.

To make two cells each a 100mm cube can do this:

Code:
cube([100,100,100]);
translate([100,0,0])
cube([100,100,100]);

You might find yourself wanting to reuse stuff you wrote, and that’s where module command comes in. By writing
Code:
module name_of_module()
{
    cube([100,100,100]);
}

This lets you type name_of_module(); somewhere and all of the stuff written into the module will be put there together in a repeatable way.

One more tip, make sure to add a semicolon ; to the end of when you declare an object/module.

Like this: cube([1,1,1]; not cube([1,1,1])

Guessing this tool might appeal more to programmers and stuff, but either way hopefully this mini tutorial can allow people to gauge whether it would be a useful addition to their box.

Here’s an example of something I’m designing in OpenSCAD
1626172484201.jpeg

If anyone has questions about how to write OpenSCAD, I can try to help in this thread. I’m learning too!

Cheers, and good luck with your project.
 

HRTKD

Boondocker
Is it all created from text commands? Or, can it be changed in the visual view?

I'm a software developer, but I'm fairly visually oriented. I could do the textual definition, but the visual part would be necessary for me.

I've been using Sketchup for quite a few years. It may not be the best, but it does what I need.
 
Top