Hi James
Thanks for raising this issue. I did notice this myself lately but I thought it was related to my using the Danish version of MapInfo Pro for a short while. But maybe that's not the case.
It could sound as if it's the update process that does something unexpected. I also recently upgraded to the most recent build of MapInfo Pro v2021.1.
When we created a single version of MapInfo Pro that supported multiple languages, we needed to ensure that all text could be translated and kept separated by language. This resulted in the new structure of the ThemeTemplate.lst file that you have found in the %AppData%\MapInfo\MapInfo\Professional\2100\ThmTmplt folder. Under each subfolder, there is a similar file for the individual languages that MapInfo Pro supports.
The content of the file looks like this:
Region Ranges, Five Diverging Red-Green 0047 1677505587
Cable Status 0081 1677484884
Template 0080 0080 1677481635
0078 0078 1677481635
0077 0077 1677481635
0076 0076 1677481635
0075 0075 1677481635
0074 0074 1677481635
Template 0079 0079 1677481635
Grid Elevation (feet) 0010 875032055
Grid Elevation (meters) 0011 875032055
I'm not that familiar with the structure of the file but I can tell that the first two values in each line represent the name of the thematic template and the filename of the thematic template. I think the third and last value represents the thematic type; ranged, individual, and so on.
And you are right, we do not have any tools for administrating this list of templates, such as renaming and deleting. Those options certainly could be handy.
You can however rename the template through the ThemeTemplate.lst. You just have to ensure that MapInfo Pro isn't running when you do it. MapInfo Pro overwrites the file when you shot down MapInfo Pro so any changes done to the file will be lost.
Please let me know if you are able to modify the file with MapInfo Pro not running.
Thanks
------------------------------
Peter Horsbøll Møller
Principal Presales Consultant | Distinguished Engineer
Precisely | Trust in Data
------------------------------
Original Message:
Sent: 03-13-2023 19:31
From: James King
Subject: MapInfo Monday: Styling a Layer through an Individual Theme
Hi Peter,
I wanted to ask a question about the way the Theme Templates are stored, particularly for the custom themes. I've recently gone through the process to update MI v2021 to build 33 (for the security update), and upon using the themes, a lot of my custom created ones are now only shown by an ID number e.g. 0089 etc rather than a named title.
Is there a way to be able to edit these within the AppData (.thm) location? I have attempted to copy over the backed up version of the ThemeTemplate.lst, which was automatically backed up during the update process, but each time I try to load MI, it reverts back.
Some of my templates are old but still very useful, so having the named title would be preferable.
Below is how they are displayed in application as well as the Theme lists from the current state (right) and the backed up version (left).
I don't mind tinkering behind the scenes, having done this with named views and Layout Templates, but having tried to use one of these and then save the template, it creates a new one rather than overwrite it, and there doesn't seem to be a "delete Theme" button or option.
Also, many of these themes are used in various workspaces, used on a regular basis, is the Theme Name used within the workspace or does it recall the individual value and style used?
As I can't find an option to edit these within the application, I've created this within the Ideas portal (https://ideas.precisely.com/ideas/MIPRO-I-1445). Maybe this could be something added to the future development of MapInfo.
------------------------------
James King
Essex County Council
CHELMSFORD
------------------------------