Salta al contenuto principale

Content Replacer

Tekla Structures - Not version-specific
Not version-specific
Tekla Structures
Environment
Not environment-specific

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

Image
tab main



In the Main tab you can set the settings to be used.

OptionDescription
StandardDrop-down list where you select the setting to use.
Load SettingsLoad the setting to be used.
Save SettingsSave the setting you made. The setting will be saved in the folder C:\ProgramData\CS Content Replacer due to user rights.
HelpOpen 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
browse-knop.png

to change the location.

FiltersDefine 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
 
To adjust the content of the system components Stiffened end plate (27), End plate (144), Footplate (1029) and Stairs (S71):
 
  

Image
filters_example.png


 
To adjust the content of all system components:
 
  

Image
filters_example2.png


 
Tip: If you do not know the name of the file extension of the system component(s), save the setting(s) once in the dialog box of the relevant system component(s) via the Save or Save as button. The file is saved in the attributes folder in the model folder. You can now see what the name of the file extension is.

In all sub-foldersCheck box to set whether the changes should also be reflected in the subfolders of the source folder.
Open Log FileOpen the log file to view the results of the changes.
Output and Output folderList 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

If desired, you can also copy the files to be modified to another folder to leave the original files untouched. You can define another folder here, for example the attributes folder in the model folder, see example below.

If no output folder is defined in the Output Folder field, the symbol  

Image
2020-10-30_11-38-22.png

appears and the files cannot be modified. The Replace files button remains gray.

Replace in a copy - keep folder structure

Same as the option Replace in a copy but now the structure of the subfolders is taken over so that the files remain in the same folder structure.

If no output folder is defined in the Output Folder field, the symbol  

Image
2020-10-30_11-38-22.png

appears and the files cannot be modified. The Replace files button remains gray.

Replace filesPress the Replace files button to implement the change in the contents of the files.
StringDefine the text you want to replace.
ReplaceDefine 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.

Image
tab about

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:  

Image
welds



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  

Image
connection_symbolsa - kopie.png

creating a detail, for example Footplate (1029), or a connection, for example End platet (144). In addition, you have system components with the symbol 

Image
macro_symbolsa - kopie.png

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:

  

Image
setting



In dialog box CS Content Replacer:

Image
welds


6. Click the Replace files button to modify the files, the following message appears:

Image
change.png



7. Click the Change anyway button, the following dialog box appears:

Image
change2.png


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.

Invia