Create a parametric profile by sketching (closed profile example)
Question:
How can I create a closed parametric profile with variable angles using the Sketch Editor?
Answer:
The following support article will take you through step by step instructions for creating a parametric profile using the Sketch Editor. In this example a parametric rectangular hollow section will be created using the Sketch Editor. The finished profile is shown below. The overall height, overall width, height of top flange, height of bottom flange and web thickness can be varied for this example profile.
See also: Create parametric profiles by sketching
Example
Set up a grid
The Sketch Editor uses the same grids that appear in the Tekla Structures model views. In this example we will hide the existing grid then create a grid that will help us draw the outline of the shape. After the profile outline has been sketched we will switch off grid display.
- Click on one of the grid lines to select it, then right-click and select Hide
- From the Tekla Structures Edit tab, select Grid > Create grid
- Enter the values shown in the X and Y coordinates below and click Create.
The Z coordinates will not be used so there is no need to change these.
Sketch the outline of the profile
Zoom in on the grid as shown below. You will need to create two closed polylines: one for the outer boundary and one for the inner boundary.
- Click the Sketch polyline button
Image
- Click points 1,2,3,4,1 and click middle mouse button to complete the first polyline
- Click points 5,6,7,8,5 and click middle mouse button to complete the second polyline
Hide the grid
- Double-click somewhere on the background inside the Sketch Editor to bring up the View Properties window
- Click Display... button
- Untick Grids and click Modify
Save the sketch
- Click the Save sketch button
Image
- Enter a name for the sketched profile into the Prefix field and click OK.
The name must be all uppercase and contain all letters.
Using the profile in the model
- After saving the sketch, close the Sketch Editor by clicking the cross in the top right corner of the Sketch Editor window
- Create a beam or column in the model then double-click it to open its Properties
- Click the Profile: Select... button, the Select Profile dialog opens
- Type the name of the section into the Filter: field and click the Filter button
- Click the + sign to expand the selection tree and select the section
- Click Apply and then OK
- Click Modify in the part Properties dialog box to change the profile.
Modify the sketch
- Open the Profile catalog, File > Catalogs > Profile catalog
Note: You cannot modify profiles when opening the profile catalog via the Select... button in the part properties dialog box.
- Search for the profile in the Profile catalog
- Right-click on the profile and select Edit profile. This will open the profile in the Sketch Editor
Add a horizontal and vertical dimension
- Hide the grid if it is showing, select grid, right-click and select Hide
- Click the Sketch horizontal dimension button
Image
- Create a dimension across the top of the profile
- Click the top left corner of the outer polyline followed by the top right corner and then click somewhere above the profile to place the dimension line
Tip: If you want to be able to click anywhere in the background, make sure the Snap to any position button
is selected. You can toggle this on and off using the F7 key or if a modelling command is active, you can right-click and select Free from the context menu.
- Click the Display variables button
to open the Variables dialog boxImage
When you create a dimension, a variable is created as shown below. Change the value of the variable by selecting the Formula cell, typing a larger number and pressing the Return key. The width of the profile will increase to this value.
- Using the Sketch vertical dimension button
create a vertical dimension from the bottom left to the top right of the profile. Test it is working by changing its value in the Variables dialog box.Image
Tip: It can be easy to make mistakes when using the sketch editor for the first time so it is recommended that you regularly save the sketch by clicking the Save sketch button.
This way if you make a mistake you can easily go back to the last working version.
Create a user input variable
- In the Variables dialog box, click Add
A new variable is added. This variable will be used to hold the value entered by the user for the total width of the profile.
- Rename the variable ui_b. For clarity we distinguish input variables from other variables by prefixing them with ui_, which stands for 'user input'
- Rename the Label in dialog box to b. This will be the name that appears in the Profile catalog
- Create another variable and give it the name ui_h, and the Label in dialog box will be h
For each variable we can choose whether to show it to the user or hide it by selecting Show or Hide in the Visibility column.
- The two variables that have just been added should have their visibility set to Show but the two dimension variables should be set to Hide.
Add a formula
The formula cell can be used to define the logic that converts the input into a sensible result. Here we will create a simple formula that assigns the value of the user input variables to the corresponding dimensions.
- But before doing that copy the value from the b1 Formula cell to the ui_b Formula cell and copy the value from the h1 Formula cell to the ui_h Formula cell
- In the Formula cell of b1 type =ui_b
- In the Formula cell of h1 type =ui_h
- Now increase the values in the ui_b and ui_h Formula cells to slightly larger numbers and the shape of the profile should change accordingly.
You can now try changing the variables in the model.
- Click the Save sketch button
Image
Try using the profile in Tekla Structures. Note: You do not need to close the Sketch Editor while you do this.
- Double click on a beam or column to open its Properties and click the Profile: Select... button, the Select Profile dialog box opens
- Select the profile and type in some new values in the Value cell
- Click Apply and OK
- Click Modify in the part's Properties dialog box.
You can also modify the profile's width and height by typing these values into the Profile field in the format shown below.
Add variables to control the top and bottom flange depths
- Add a vertical dimension from the top of the outer polyline to the top of the inner polyline and another one from the bottom of the outer polyline to the bottom of the inner polyline.
Note: If you were to add a dimension from the top of the inner polyline to the bottom of the inner polyline you would no longer have any freedom to vary any of the vertical dimensions because they would each be locked to their current value by the other dimensions.
- Add two new user input variables and link these to the new dimensions using the formula as shown below.
Add a variable to control the web thickness
- Add two more horizontal dimensions as shown below.
We want both webs to have the same thickness. We can achieve this by adding a formula that sets one of the variables equal to the other variable.
- Enter =b2 in the Formula cell of b3
- Add another user input variable for the thickness called ui_b1
- Enter =ui_b1 in the Formula cell of dimension b2
Add an image of the profile to the catalog
- Create an image of the profile and save it as a .bmp file in the Bitmaps folder of the installation folder
For example, if you have installed Tekla Structures version 2018 to C:\TeklaStructures, it needs to be saved in C:\TeklaStructures\2018\Bitmaps.
See also
Create a parametric profile by sketching (open profile example)
Create parametric profiles by sketching