DSTV File Name Modifier
1. Purpose and description
This tool is developed to help Tekla Structures customers to customize NC file names. Default NC
files are being created with only Piece Mark whereas some customers would like to have Project
Number, Profile and Material in NC file names. It is all possible with this new tool.
2. System requirements
- .NET Framework version: 4.7+
- Tekla Structures Version: Does not require Tekla Structures. It is a standalone application.
- Set the size of text and other items on your screen by choosing “smaller-100%(default)” for this, Go to Control Panel → Appearance and Personalization>>Display
3. How to Use and Extension Details
Version 4.0
Before using the extension, ensure that your CNC files are created with the NC file header settings configured according to the project requirements.
How to locate and UI,
UI Functions Information:
Select multiple CNC, NC files: Option to select single NC files or multiple files. Use the browser button to select the NC files.
Select all CNC, NC files in folder: This option runs all NC files in the selected folder. To select a director or folder path, click on the browser button.
Place to the source folder (automatically): Use the checkbox to rename files and place them in the same folder. If you want to rename a file and move it to a different folder, use the browser button to choose the new folder location.
File Name Format: This will display the header information as a list, and you can select the line element. Following the header information, a text element is also available. You can utilize this element to incorporate a custom prefix, append a custom suffix, or employ it as a separator or custom word as your project requires.
Image
Add & Remove: Functions whether to include or exclude a line element to the left of "6. File Rename Format" (adding or renaming)
File Rename Format: Preview the added line element.
Move Up & Down: Use to select the elements in "6. File Rename Format" and reorder the elements as you need.
For files contain Bolts, add "BO" to the end of the file name: To easily identify NC files containing drilling or bore-operation information, you can enable this option to automatically append 'BO' to the file name.
Rename: Renames the file according to the configured settings… (Please note that this will change only the file name.)
Version 1.0 ~ 3.0
You should have NC files created in advance:
1. Run the application by double clicking.
2. You need to select Multiple Files or All Files (Select Folder).
3. Input the files or folder from Browse option.
4. Where to save the renamed files? There are two options, same folder as original by check
mark or select new folder location by browsing.
5. Choose the file name format. There are ten options available: ( Project Number, Piece
Mark, Profile, Material, Quantify, Text Info1, Text Info2, Text Info3, Text Info4, or any Text)
Where:
Text Info1, Text Info2, Text Info3, Text Info4 will be as stated in NC File Header
Information. See the image below:
6. You can choose any combination with “-“ or ”_” as a separators. More options can be
added later.
Please note that special characters can be used, but you will find that “/” will be ignored
from the renamed file name and also “*” will be replaced with “X”.
7. You can preview the file name by clicking on Preview.
8. You can also save your current settings as default setting.
9. You can reload default settings as well.
10. Finally, you can reload rename all selected NC files to new file names in one go. There are
two options to select from:
- Create new files
This option will create a copy of the selected NC files and gives a name based on
the file name format that you have chosen. Note that entire file will not be changed.
- Rename Original Files.
This option will rename the original selected NC files by the file name format you
have chosen without changing the entire file.
4. What you need to know about this tool?
When you run the application first time, the default setting will be run automatically.
And if you click on preview after selecting the NC files, the following format will be displayed:
However, when you need to exclude one or more options, then simply you need to uncheck the
checkbox beside the drop-down list, and this will disable it. It’s important to remember that one
option needs to be selected at least when you select NC files. If you want to check only one option
then this needs to be “Piece Mark”, since any given format without selecting Piece Mark will halt
the execution of the process. No files will be processed unless Piece Mark option is there with the
given selection.
Examples on different file name formats:
5. Troubleshooting:
This topic introduces some errors that you might encounter and the proper solution for
them:
Case : Unable to preview the new name of the CNC file(s).
Reason : You tried to preview the name without selecting at least one CNC file.
Solution : You must select CNC file(s) first so that the application can read the related information based on your selection.
Case : Unable to process the selected CNC file(s).
Reason : You clicked on “Start” button without choosing
one of the two available option
Solution : You must choose first between these two available options so that you can proceed.
- Create new file(s) with new names
- Rename original file(s).
Case : Unable to process the selected CNC file(s).
Reason : You clicked on “Start” button without choosing the output directory to place the processed file(s) in (If any).
Solution: You can either check “Place to source folder(s) automatically” and this will load all the processed files in the same input directory that you have chosen the CNC file(s) from. Or, you can simply click on “Browse” button to select the output directory for the processed files.
Case : Unable to save the current settings.
Reason : This is still a limitation in the current version; you can only save settings if you
selected four items from all the four drop down lists. The below example will cause this:
Solution: If you need to save settings in which you can load later, then you need to select
from all the drop-down lists and then click on save settings. This should work. See the following
example: