1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-01-17 12:58:16 +01:00
Mendel90/scad/utils/bom.scad
2012-03-12 01:13:07 +00:00

29 lines
525 B
OpenSCAD

//
// Mendel90
//
// GNU GPL v2
// nop.head@gmail.com
// hydraraptor.blogspot.com
//
// BOM generation
//
module assembly(name) { // start an assembly
if(bom > 0)
echo(str(name, "/"));
}
module end(name) { // end an assembly
if(bom > 0)
echo(str("/",name));
}
module stl(name) { // name an stl
if(bom > 0)
echo(str(name,".stl"));
}
module vitamin(name) { // name a vitamin
if(bom > 1)
echo(name);
}