I had a hard time fixing my SOLIDWORKS document templates.
So I thought I’d share what I learned.
This post is about three types of SOLIDWORKS templates:
The default folder is C:\ProgramData\SOLIDWORKS\SOLIDWORKS 20xx\templates
When you install a newer version, SOLIDWORKS reuses templates from this version. I have SW 2021, 2022 and 2023 installed and they all use the 2021 templates.
This is not ideal, because the official advice is to create new templates every time you switch to a new SOLIDWORKS version.
I just checked to see if templates for each version actually exist at all. But no, the template folders for other SW versions are still empty.
Go to System Options > File Locations. Document Templates is at the top of the list.
You don’t need to. You can quickly create them yourself.
Check out Create clean SOLIDWORKS templates: one simple trick to learn more.
You cannot create your own template file completely from scratch, probably because a SOLIDWORKS file consists of multiple file types zipped together.
So these are the steps to create a new template:
No, you cannot.
There are some confusing methods in the SOLIDWORKS API though: EditTemplate, ReloadTemplate and GetTemplateName. But these methods are used for Sheet Formats, which SOLIDWORKS apparently called templates decades ago.
SOLIDWORKS creates a new part/assembly/drawing template when it can’t find one. I showed you how in the blog post mentioned in sections 5 and 6.
That means that if SOLIDWORKS keeps on creating new templates, you have not set up your template directory correctly.
Make sure your template directory (or its subfolders) contains every document template.
For more details, check out Stop SolidWorks from creating default templates on the SOLIDWORKS forum.
I still don’t understand why this happens. Maybe because both directories have the same name (see the next section).
I just know I was able to fix it. All I did was click “Move Up” on the new directory in the settings.
Before:
After:
Because SOLIDWORKS uses the directory name to create tabs. I found that here in the help.
If you two directories are named “Templates” or “templates” (SOLIDWORKS is not case sensitive), then the contents of these directories are merged in a single tab.
Before:
After I renamed one of the directories and added the new directory to the settings:
This happens when you have a main folder that contains no templates, just subfolders with templates.
SOLIDWORKS will add a tab for each subfolder and a tab for the main folder, which then contains not a single template.
This doesn’t seem to happen in newer SOLIDWORKS versions though. It doesn’t even happen in my SW 2017 installation.
Some people like to choose their template for every new file, but some people hate it.
You can change this in the settings > Default Templates > Always use these default document templates or Prompt user to select document template:
Subscribe to our newsletter and get our TimeSavers add-in for free.