I need a lisp. I want to insert automatically on a certain size (length,width,thickness) strip. That is, I want to add object one by one according to following rules:


Let me explain with an example:
I'm giving the dimensions
Strip dimensions :
length: 9 mm
width: 6.8 mm
thickness 0.16 mm
Part dimensions :
L= 2 mm
H= 2 mm
B= 1.25x0.16= 0.2 mm
C= L+B= 2+0.2= 2.2 mm
If the length of x-axis is greater than C= L+B I want to insert one part automatically
I want to do it in the same way as the y-axis.

I draw the first part into the strip after calculate for the example above.
9-2.2=6.8 ≥ 2.2 insert one part
after the second part
6.8-2.2=4.6 ≥ 2.2 insert one part
after the third part
4.6-2.2=2.4 ≥ 2.2 insert one part
after the fourth part
2.4-2.2=0.2 < 2.2 finish