Brick design

can anybody help me with these pattern brick design.3dm (1.7 MB) brick design.gh (13.2 KB)

brick02 brick03

You are a prime candidate for Grasshopper. That is exactly what Grasshopper is for.
I can’t teach you; I’m just getting into it myself, but I recommend it.
OOPS, you did that with Grasshopper. I’m going to study your work.

missing

thank u joseph i really appreciate that.

Updated that code here:

thank you so much.i am working on my definition.it was so helpful