Here’s a quick look at using the “Create New Object” feature in Tinkercad’s Codeblocks. Essentially, it lets you create a template that you can then utilize repeatedly in a design.
Here's the project from this video with commented code:
https://www.tinkercad.com/codeblocks/gKZdiDwqdDC