How to create a User Interface - Part 8
This is the eighth part of a step-by-step guide showing you how to use the Tedds Interface Designer to create user interfaces for your own custom calculations. In this part, you will start with the user interface created in part 7 and add the calculations to carry out the actual steel tie force design.
This guide is written for Word 2007/2010, some of the steps described may be slightly different if you are using a different version of Word.
Writing the calculations
This series of articles has focused on the techniques required to create a user interface for your own calculations, however what you haven't yet done is actual carry out any design calculations. When you start to write a new calculation it's a good idea to start by creating the user interface before you write any design calculations. Starting with the user interface ensures you focus on the information you need from the user before you start thinking about the complexity of the subsequent calculations. If you start with the right input it's then easier to start writing your design calculations bit-by-bit knowing that you already have all of the input variables you need.
Note: this article is not designed to teach you how to write calculations please refer to the Tedds documentation and other articles for detailed help on writing calculations.
- Open the document that contains the completed user interface from part 7.
- Move the insertion point after the field that defines the user interface.
- Enter the Steel tie force design calculations as below:
Tie force;Tf = ? kN
Effective length; Le = ? mm
Section; Name = ?
Section properties; A = ? mm2; rxx = ? mm ryy = ? mm
Min. radius of gyration rd = min(rxx,ryy) = ? mm
Actual slenderness λ = Le / rd = ?
Slenderness limit λL = ?
Minimum yield strength Fy = ? N/mm2
Actual stress fa = Tf / A = ? N/mm2
Stress limit fy = 0.8 * Fy = ? N/mm2
Choosing the calculations to perform
- Select the heading and calculations for the slenderness check.
- Save the selected calculations to your Steel section tie design library and name the item Slenderness check.
- Delete the selected text from the document.
- Select the heading and calculations for the shear check.
- Save the selected calculations to your Steel section tie design library and name the item Shear check.
- Delete the selected text from the document.
- Select the Tedds tab on the ribbon and then in the Insert group click Tedds Field.
- Select the Calc Item tab.
- For the Type select Condition.
- For the Condition enter _CheckSlender==1.
- For the Calc library browse and select the Steel section tie design library.
- For the Yes Calc item enter the item name Slenderness check.
- For the No Calc item enter blank.
- Select the Tedds tab on the ribbon and in the Show group enable the Show fields option.
- In your document you should now see the field code that starts =CSC|CALL EvalLibItem.... At the end of this line of text modify the text "blank" to "".