Hello,
Are you recreating this template on each use, if so you are doing way too much work, once you have done it once save it as a template, maybe start with the xref border, insert the titleblock attribute, import or create appropriate layers and dimstyles, then you can save as .dwg template...