var diameter = 200; var pitch = 800; var N = 20; var spacing=50 var bitmap_width = (N-1)*pitch+diameter; var bitmap_height = (N-1)*pitch+spacing+2*diameter; var doc = app.documents.add(DocumentColorSpace.RGB, bitmap_width, bitmap_height); var artLayer = doc.layers[0]; var newRGBColor = new RGBColor(); newRGBColor.red =0; newRGBColor.green = 0; newRGBColor.blue = 0; doc.defaultFillColor = newRGBColor; doc.defaultStroked = false; app.defaultFilled = true; function drawcircle(x_location, y_location, diameter) { artLayer.pathItems.ellipse(y_location, x_location, diameter, diameter, false, true); } function draw_verticaldoubleholes(x_location, y_location, diameter, spacing) { artLayer.pathItems.ellipse(y_location+2*diameter+spacing,x_location, diameter, diameter, false, true); artLayer.pathItems.ellipse(y_location+diameter,x_location, diameter, diameter, false, true); var myLine = doc.pathItems.add(); myLine.stroked=true; myLine.setEntirePath([[x_location+diameter/2,y_location+diameter+spacing], [x_location+diameter/2, y_location+diameter]]); } for (Ny=0; Ny