Skip to main content

How to use the Excel spreadsheet in connection design (Example)

Tekla Structures 2018 - 2026 connection excel design template
2022
Tekla Structures
2021
Tekla Structures
2020
Tekla Structures
2019i
Tekla Structures
2019
Tekla Structures
2018i
Tekla Structures
2018
Tekla Structures
2023
Tekla Structures
2024
Tekla Structures
2025
Tekla Structures
2026
Tekla Structures
Environment
United Kingdom

The following is a simple example of how to link an Excel spreadsheet to a connection for connection design. See also the Tekla User Assistance Article

"Excel spreadsheets in connection design" for further information.
 

Obtain the Excel design folder files

Copy the entire exceldesign folder from C:\TeklaStructures\{version}\Environments\common to the model folder and then work in this exceldesign folder in the model folder.

Copy the component_template.xls file and replace the template part of the name with the number of the connection you want to create a design spreadsheet for. You can find this number by selecting the component and doing right-click>Inquire. For example, the Inquire Object display for the "Moment connection (181)" connection is shown below. The number after the word "Connection (top left) tells you the number of the component (Note that it will not always be the number in the component's name as it is in this case). In this case the excel file would be called component_181.xls

 
Image
image.png

Test that the file is being read:

Taking the example of the Moment connection (181), create this connection then double click on it to open its properties and on the Design type tab select Excel for External design.

Click Modify and the excel spreadsheet should open with the Input values are set pop-up shown below.

 
Image
image.png


If you don't see this you might need to edit the Excel.vb file, which will be in the exceldesign folder

The following lines should all be set to "True".

        Const DEBUG As Boolean = True

        Const SHOW_EXCEL As Boolean = True

        Const RUN_MACRO As Boolean = True

        Const STORE_RESULTS As Boolean = True


Test that data can be read into and out of the excel file.

Step 1 - Find out the names of attributes you want to use in the design.

In the Bolts tab, enter 777 for the number of bolt rows as shown below:

 
Image
image.png


On the Design tab enter 888 for Shear, V:

 
Image
image.png


Save these properties with the name "181_attributes".

A file called 181_attributes.j181 will be created in the attributes folder inside the model folder.

Open this file in a text editor and search "777" and then search "888" to find the name of the two attributes to which you assigned these numbers.

 
Image
image.png


The attribute names you need to enter into Excel is the text following joint_attributes.

In this example the attributes we want are: nb for the number of bolt rows and shear_force1 for the shear force.


Step 2 - Enter the attributes into the Excel file.

In the Inputs tab enter the line highlighted below. It is important to enter the correct data type (in this case double, but this could be string or int) and enter a number in the Value column.

 
Image
image.png


In the Outputs tab, enter the highlighted line as below.

 
Image
image.png


Save and Close the Excel file.


Step 3 - Enter some test values in the connection properties

In the bolts tab enter "4" for the number of bolt rows and enter "40" for Shear,V in the Design tab.

Then click Modify. You should see the shear force value appear in the Inputs tab. Keep clicking OK to go through all the steps then check if the number of bolt rows has increased to 4.


Step 4 - Create a calculation that changes the connection properties based on the force

Create a new tab in the spreadsheet. In this tab create a calculation with a conditional statement that returns 4 if the shear force is greater than 50kN and 3 if not.

In the Outputs tab get the result of this calculation into the cell for shear force value.

 
Image
image.png


Try entering a value less than 50kN and click Modify. Then do the same for a value greater than 50kN and see it the number of rows changes.
Submit

Table of Contents