Exercise 3: Connect columns to pad footings
You will learn how to connect columns to the pad footings using detail "Stiffened base plate (1014)".
After downloading the TSOpenAPISelfLearningExercises package from GitHub (button above), find the example code for this exercise at \Exercise3- Connections\ folder.
Before you start, open the project that you created in exercise 2.
Add stiffened base plates to columns
Modify the last exercise so that you add a method adding stiffened base plates for the columns you created in the earlier exercise. Feed the inserted pad footings and columns to this method to create the connections. Follow these steps to create your application:
- Create a method to connect the columns to the pad footings using the Detail class, create and insert a Baseplate with the following properties (remember to localize needed values):
Name = "Stiffened Base Plate"; Number = 1014; DetailType = DetailTypeEnum.END; LoadAttributesFromFile("standard"); SetAttribute("cut", 1); AutoDirectionType = AutoDirectionTypeEnum.AUTODIR_FROM_ATTRIBUTE_FILE; //Use the columns as the primary part and column bottom point as reference point.
- Create a method that creates pad footing, column and connection to a given position.
- Modify your click-event so that you call the method created in step 2.
-
Test your application.
Note: the "cut" attribute is a option menu in Tekla Structures and it's defined in an .inp file for that particular connection. Values returned by option menus are such that:
-
First value (usually 0) means empty value internally.
-
Second value (usually 1) means value 0.
-
Third value (usually 2) means value 1.
The result should look similar to this: