Put the flap on the pin located on the main piece. Then put glue on the tiny piece and put the pin on that in the little hole on the flap, push down and let it dry. (don't push to hard).
sorry there are no g codes.
The author hasn't provided the model origin yet.