o666 sub o667 if[ #1 EQ 10 ] (big circle) g91g21f200 g1x[#3]z[#4] g2i[0-[#3]] g1x[0-[#3]]z[0-[#4]] o667 else o668 if[ #1 EQ 20 ] (rect) #=#2 #=[#2/2] #=#3 #=[#3/2] #=#4 g91g21f200 g1x[#]y[#]z[#] g1x[0-[#]] g1y[0-[#]] g1x[#] g1y[#] g1x[0-[#]]y[0-[#]]z[0-[#]] (call local diamond) #=# #=# o30 call [#] [#] [-3] o668 endif o667 endif o666 endsub ( guess: local subs to this file must be after the filename endsub ^^^ right up there ) o30 sub (diamond) g91g21f200 g1x[#1/2]z[#3] g1x[0-[#1/2]]y[#2/2] g1x[0-[#1/2]]y[0-[#2/2]] g1x[#1/2]y[0-[#2/2]] g1x[#1/2]y[#2/2] g1x[0-[#1/2]]z[0-[#3]] o30 endsub M2