Content Replacer
You use the tool Content Replacer to modify the content of files. The tool is mainly intended for modifying the content of large numbers of files, such as the default weld sizes for a project.
Files created
- Original files or a copy of the original files (in the folder structure or not) are modified and saved.
Before you start
Make sure that at least one Tekla Structures version is installed unless you want to modify files other than Tekla Structures files.
Selection order
1. Double-click on the tool Content Replacer. The first time you will be asked for a license.
2. Adjust the settings if desired.
3. Press the Replace files button.
The contents of the files are adjusted.
Part identification key
There is no part identification key.
Tab Main
In the Main tab you can set the settings to be used.
| Option | Description | |||
|---|---|---|---|---|
| Standard | Drop-down list where you select the setting to use. | |||
| Load Settings | Load the setting to be used. | |||
| Save Settings | Save the setting you made. The setting will be saved in the folder C:\ProgramData\CS Content Replacer due to user rights. | |||
| Help | Open the Help file of the tool. | |||
| Source | Location of the "source" folder. The default location is ..:\TeklaStructures\2020.0\Environments\Netherlands. Click the Browse button Image
to change the location. | |||
| Filters | Define the name or a part of the name of the files whose contents you want to change. PLEASE MIND: For example, if you use the notation * .m*, all files that match are filtered. So carefully define the name of the filter to avoid filtering files that you do not want to modify. | |||
Examples Image
Image
| ||||
| In all sub-folders | Check box to set whether the changes should also be reflected in the subfolders of the source folder. | |||
| Open Log File | Open the log file to view the results of the changes. | |||
| Output and Output folder | List box to define the output of the changes. The options are: | |||
| Replace in source files Edit the contents of the files in the "source" folder. The default folder is the folder Netherlands in ..:\TeklaStructures\2020.0\Environments\Netherlands. (and in the sub-folders if the option In all sub-folders is enabled). | ||||
Replace in a copy Image
appears and the files cannot be modified. The Replace files button remains gray. | ||||
Replace in a copy - keep folder structure Image
appears and the files cannot be modified. The Replace files button remains gray. | ||||
| Replace files | Press the Replace files button to implement the change in the contents of the files. | |||
| String | Define the text you want to replace. | |||
| Replace | Define the text to replace the text defined in String. | |||
Tab About
Information about the date of the tool. This date is indicative and can therefore be different even though the tool has the same content.
All rights reserved. No conclusions can be associated to the representation of the pictures in relation to the operating systems under which Tekla Structures runs.
This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/ or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
Example
You want to start a Tekla Structures model in which you want to use a weld size of 5 mm instead of the weld size of 3 mm defined as default, for example in the system components settings:
You could adjust the templates in the drawings so that a weld size of 5 mm is shown in the drawings, but when the Tekla Structures model is exported to an IF file, the IFC file has weld sizes of 5 mm instead of the intended 3 mm.
General about system components
Tekla Structures includes system components with symbool
creating a detail, for example Footplate (1029), or a connection, for example End platet (144). In addition, you have system components with the symbol
that automatically create the parts that form a certain structure, for example system component Stairs (S71).
When you save a setting of such a system component in a Tekla Structures model, for example the setting named standard of system component End plate (144), the new setting is saved as a file in the attributes folder in the model folder, in this case with the name standard.j144. The letter "j" in the name stands for joint. The system component number refers to the file extension of the file: * .j144.
Step plan
To change the weld size from 5 mm to 3 mm in all settings of all system components, do the following:
1. Double-click the Content Replacer tool to open it.
2. In the Source option, define the location of the "source" folder, if desired, click the browse button to change the location. Select the In all sub-folders check box to include the changes in the sub-folders.
3. In the Filters option, define the filter format *.j* *.m* so that the content of all system components is adjusted.
4. In the Output option, define the desired option in the listbox. We now choose the option Replace in a copy to save the files to be modified in the folder attributes in the model folder:
C:\TeklaStructuresModels\Model SR\attributes
5. For the String option, define the text you want to replace and for Replace for which you want to replace it. The following lines are stored in the settings of system components in which the weld sizes are defined:
In dialog box CS Content Replacer:
6. Click the Replace files button to modify the files, the following message appears:
7. Click the Change anyway button, the following dialog box appears:
8. Click OK, the files are modified.
9. Reopen the Tekla Structures-model. The settings of the system components now have the weld size of 5 mm.