// Last edited on 2019-11-22 12:13:35 by jstolfi #macro write_pieces(label, mat, qt, dx,dy,dz) // Appends to file {pieces} the dimensions of {qt} pieces of flat // material to cut. // The {mat} parameter is a short string that identifies the // material, such as "plywd" for plywood, "plast" for plastic, // "steel" for steel plate, etc. // Usually {dx} is length, {dy} is width, {dz} is thickness. // The number string {label} is printed at the right. #local mm = 0; #for(mm, 1, qt, 1) #write(pieces, mat) #write(pieces, concat(" ", str(dx,6,1), " ", str(dy,6,1), " ", str(dz,6,1))) #write(pieces, concat(" ", label, "\n")) #end #end