Content Replacer


Software version: 2020

Last updated November 23, 2020 by Construsoft NL ts-support@construsoft.com

Software version: 
2020
Environment: 
Not environment-specific

Content Replacer

You use the tool Content Replacer to modify the contents 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 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
 
To adjust the content of the system components Stiffened end plate (27), End plate (144), Footplate (1029) and Stairs (S71):
 

 
To adjust the content of all system components:
 

 
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-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

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  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  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 representationthe way that the information included in a model is represented visually

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 IFCfile format commonly used in BIM that facilitates software interoperability

IFC is an open specification developed by the IAI (International Alliance for Interoperability).

Model can be exported into an IFC file.

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 componentcomponent that is included in a Tekla Structures configuration and whose component objects and composition the user can modify within the limits of the component properties

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 platecomponent object that represents a plate welded perpendicular to the end of the component secondary part

(144)
, the new setting is saved as a file in the attributes folder in the model folderfolder that is used for storing files associated with a model

Tekla Structures stores all files associated with a model in a folder it creates with the same name as the model database (.db1).

In multi-user mode all users access the same 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.

Quick feedback

The feedback you give here is not visible to other users. We use your comments to improve our content.
We use this to prevent automated spam submissions.
Content rating: 
No votes yet