Example 2: Create a mark template containing a formula in the value field

Tekla Structures
2019i
Tekla Structures

Example 2: Create a mark template containing a formula in the value field

You use decimals instead of fractions in your part marks in the US environment Imperial role by adding a formula in the mark template value field.

  1. On the Drawings & reports tab, click Drawing properties and select the drawing type.
  2. Load drawing properties that are as close to the ones you need as possible.
  3. Single-part, assembly and cast unit drawings: Click View creation in the options tree on the left, select the view and the properties that you want to change, and click View properties.
  4. Click Part mark.
  5. In the mark properties dialog box, double-click the User-defined attribute element in the Available elements list to add it in the mark.
  6. In the Mark content - template dialog box, click Create new.

    This starts the Template Editor.

  7. Click File > New and create a new graphical template.
  8. Click Insert > Component > Row .
  9. Select PART as the content type.
  10. Click Insert > Value field , and place the field.
  11. In the displayed Select Attribute [Part] dialog box, click the Formula button.
  12. Add the following formula in the Formula box and click OK :

    "L " + format(GetValue("HEIGHT"),"Length","inch",1) + " x "+ format(GetValue("WIDTH"),"Length","inch",1) + " x " + format(GetValue("PROFILE.FLANGE_THICKNESS_1"),"Length","inch",2)

  13. Double-click the value field to open the Value Field Properties dialog box.
  14. Set the Data type to text, enter a name for the field, for example, PART_MARK , and ensure that the length value you give in the Length field is high enough to fit all the characters and numbers included, for example, 20.
  15. Click OK.
  16. Click Edit > Properties and minimize the height and the width of the row.
  17. Click File > Save to save the template.

    The template is by default saved as a .tpl file in the \mark folder under the model folder. You can copy this template to other models as required.

  18. In Tekla Structures , click Refresh list in the Mark content - template dialog box to see the template you created.
  19. Select the template and click OK.
  20. Save the mark properties for later use with a unique name.
  21. Single-part, assembly and cast unit drawings:Click Save to save the changes in view properties and Close to return to drawing properties.

    General arrangement drawings: Click OK.

  22. Click Save to save the drawing properties, then click OK and create the drawing.
Was this helpful?
Previous
Next