How to use date format YYYY-MM-DD in plot file names

Tekla Structures
Not version-specific
Tekla Structures
Plot file name
Date format
Environment
Not environment-specific

Question

Is it possible to change the exported file name format from 07.10.2020 to 2020-10-07? For exported DWGs and PDFs for example. It is required in my country's modeling standards.

Answer

Yes, it is possible. What you need to do is to change the global format of the attribute that you use in the file name. So if you use that attribute elsewhere (e.g. in part marks), the format will be the same there too. The attribute formats, precisions and data types are defined in a contentattributes.lst file.
 
As an example, the user-defined attribute DR_ACCEPTOR_DATE in the Finland environment is listed in FI_contentattributes_userdefined.lst in the folder C:\ProgramData\Trimble\Tekla Structures\<version>\Environments\Finland\General\template\settings.
 
By default, it's defined like this:
 
DR_ACCEPTOR_DATE INTEGER LEFT TRUE 12 0 Date dd.mm.yyyy
 
The date format is set in the last column as dd.mm.yyyy. In the file C:\Program Files\Tekla Structures\<version>\nt\bin\TplEd\settings\valuefieldclasses.lst you can find all the options you have for each data type, including yyyy-mm-dd. So switch the format to yyyy-mm-dd, restart Tekla Structures and define the plot file name with %UDA:DR_ACCEPTOR_DATE%,  and you will achieve the desired file name.

See also

See the link below for more information regarding template attribute (lst) files and their search order.​​​​​
Template attribute files (contentattributes.lst)
È stato utile?