Create a parametric profile by sketching (closed profile example)

Tekla Structures Sketch editor sketched profiles closed profile
Not version-specific
Tekla Structures
Environment
Not environment-specific

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
 

Image
create-parametric-profile-by-sketching-closed-profile-example-01.png

 

Example

  1. Open Sketch Editor

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.

  1. Click on one of the grid lines to select it, then right-click and select Hide
Image
create-parametric-profile-by-sketching-closed-profile-example-02.png

 

  1. From the Tekla Structures Edit tab, select GridCreate grid
Image
create-parametric-profile-by-sketching-closed-profile-example-03.png

 

  1. Enter the values shown in the X and Y coordinates below and click Create.
Image
create-parametric-profile-by-sketching-closed-profile-example-04.png

 

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.

  1. Click the Sketch polyline button
    Image
    GUID-4B2D58D9-8D34-4008-99FC-7C63FEA74421-publishing.gif
  2. Click points 1,2,3,4,1 and click middle mouse button to complete the first polyline
  3. Click points 5,6,7,8,5 and click middle mouse button to complete the second polyline
Image
create-parametric-profile-by-sketching-closed-profile-example-05.png

Hide the grid

  1. Double-click somewhere on the background inside the Sketch Editor to bring up the View Properties window
  2. Click Display... button
  3. Untick Grids and click Modify
Image
create-parametric-profile-by-sketching-closed-profile-example-06.png

Save the sketch

  1. Click the Save sketch button  
    Image
    GUID-897E2D13-3902-437C-9BB5-A9F83B3C3FA1-publishing.png
  2. Enter a name for the sketched profile into the Prefix field and click OK.

The name must be all uppercase and contain all letters.
 

Image
create-parametric-profile-by-sketching-closed-profile-example-07.png

Using the profile in the model

  1. After saving the sketch, close the Sketch Editor by clicking the cross in the top right corner of the Sketch Editor window
  2. Create a beam or column in the model then double-click it to open its Properties
  3. Click the Profile: Select... button, the Select Profile dialog opens
  4. Type the name of the section into the Filter: field and click the Filter button
  5. Click the + sign to expand the selection tree and select the section
  6. Click Apply and then OK
Image
create-parametric-profile-by-sketching-closed-profile-example-08.png

 

  1. Click Modify in the part Properties dialog box to change the profile.

 

Image
create-parametric-profile-by-sketching-closed-profile-example-09.png

Modify the sketch

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

  1. Search for the profile in the Profile catalog
  2. Right-click on the profile and select Edit profile. This will open the profile in the Sketch Editor

Add a horizontal and vertical dimension

  1. Hide the grid if it is showing, select grid, right-click and select Hide
  2. Click the Sketch horizontal dimension button  
    Image
    GUID-519BD549-14DF-403B-946C-B27E5398F56E-publishing.gif
  3. Create a dimension across the top of the profile
  4. 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
Image
create-parametric-profile-by-sketching-closed-profile-example-10.png


Tip: If you want to be able to click anywhere in the background, make sure the Snap to any position button 

Image
GUID-1B36CD78-25CB-4215-8DE3-95266640B25D-publishing.png

 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.
 

Image
create-parametric-profile-by-sketching-closed-profile-example-11.png

 

  1. Click the Display variables button 
    Image
    GUID-26EB9A3E-1AEA-4CE5-8962-6FEFA713C1AC-publishing.gif
     to open the Variables dialog box

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.
 

Image
create-parametric-profile-by-sketching-closed-profile-example-12.png

 

  1. Using the Sketch vertical dimension button 
    Image
    GUID-9E73D04A-6CBE-4DB8-986D-2BF84A0D4903-publishing.gif
     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.

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.

Image
GUID-897E2D13-3902-437C-9BB5-A9F83B3C3FA1-publishing.png

This way if you make a mistake you can easily go back to the last working version.

Create a user input variable

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

  1. Rename the variable ui_b. For clarity we distinguish input variables from other variables by prefixing them with ui_, which stands for 'user input'
  2. Rename the Label in dialog box to b. This will be the name that appears in the Profile catalog
Image
create-parametric-profile-by-sketching-closed-profile-example-13.png

 

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

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

  1. 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
  2. In the Formula cell of b1 type =ui_b
  3. In the Formula cell of h1 type =ui_h

 

Image
create-parametric-profile-by-sketching-closed-profile-example-14.png

 

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

 

Image
create-parametric-profile-by-sketching-closed-profile-example-15.png

 

You can now try changing the variables in the model.

  1. Click the Save sketch button  
    Image
    GUID-897E2D13-3902-437C-9BB5-A9F83B3C3FA1-publishing.png

Try using the profile in Tekla Structures. Note: You do not need to close the Sketch Editor while you do this.

  1. Double click on a beam or column to open its Properties and click the Profile: Select... button, the Select Profile dialog box opens
  2. Select the profile and type in some new values in the Value cell
  3. Click Apply and OK
  4. Click Modify in the part's Properties dialog box.
Image
create-parametric-profile-by-sketching-closed-profile-example-16.png

 

You can also modify the profile's width and height by typing these values into the Profile field in the format shown below.

 

Image
create-parametric-profile-by-sketching-closed-profile-example-17.png

Add variables to control the top and bottom flange depths

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

 

Image
create-parametric-profile-by-sketching-closed-profile-example-18.png

 

  1. Add two new user input variables and link these to the new dimensions using the formula as shown below.

 

Image
create-parametric-profile-by-sketching-closed-profile-example-19.png

Add a variable to control the web thickness

  1. Add two more horizontal dimensions as shown below.
Image
create-parametric-profile-by-sketching-closed-profile-example-20.png

 

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.

  1. Enter =b2 in the Formula cell of b3
Image
create-parametric-profile-by-sketching-closed-profile-example-21.png

 

  1. Add another user input variable for the thickness called ui_b1
  2. Enter =ui_b1 in the Formula cell of dimension b2
Image
create-parametric-profile-by-sketching-closed-profile-example-22.png

Add an image of the profile to the catalog

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

Image
create-parametric-profile-by-sketching-closed-profile-example-23.png

 

See also

Create a parametric profile by sketching (open profile example)
Create parametric profiles by sketching

Was this helpful?