- Home
- Tekla Tedds
- References
- Tedds fields and functions
- Other Tedds fields
Other Tedds fields
Other Tedds fields
In addition to the major Tedds fields, Tedds for Word contains a number of additional fields. You can use the other Tedds fields to add specific functionality to your documents, such as calculating a library item or running a Word macro. For more information on other Tedds fields, see the following paragraphs.
The following only applies to Tedds for Word.
You can access all Tedds fields in the Library Access System. Go to Writing your own custom calculations > Calculation writing documentation > Tedds fields.
Evaluate script calc item fields
An Evaluate script calc item field calculates a selected script calc library item, created with the Calc designer.
-
In the Calculating folder, select EvalScriptCalcItem (field).
-
Modify the template according to the syntax below.
-
Perform your calculations.
The particular syntax for Evaluate script calc item fields is the following:
EvalScriptCalcItem(fileName, itemName, subModuleName)
-
filename
is the full path to the calc library.
-
itemName
is the name of the calc item.
-
subModuleName
is an optional field, intended for the name of a submodule to be executed.
Example
{=CSC|CALL EvalScriptCalcItem($(SysLbrDir)LibraryName.lbr", "ItemName", "Submodule1")}
Evaluate metafile calc item fields
An Evaluate metafile calc item field calculates a selected metafile calc library item or a sketch. The sketch can either be inserted in the document or discarded.
- In the Calculating folder, select EvalMetaFileCalcItem (field).
-
Modify the template according to the syntax below.
-
Perform your calculations.
The particular syntax for Evaluate metafile calc item fields is the following:
EvalMetaFileCalcItem(fileName, itemName, output)
-
filename
is the full path to the calc library.
-
itemName
is the name of the calc item.
-
output
determines whether to output (Append) or discard (Discard) the calculated item.
Example
{=CSC|CALL EvalMetaFileCalcItem("$(SysLbrDir)Misketch.lbr", "Sketch - Open Plan", Append)}
Evaluate RTF calc item fields
An Evaluate RTF calc item field calculates an RTF calc item. The item can either be inserted in the document or discarded.
-
In the Calculating folder, select EvalRtfCalcItem (field).
-
Modify the template according to the syntax below.
-
Perform your calculations.
The particular syntax for Evaluate RTF calc item fields is the following:
EvalRTFCalcItem(fileName, itemName, output, replace)
-
filename
is the full path to the calc library.
-
itemName
is the name of the calc item.
-
output
determines whether to output (Append) or discard (Discard) the calculated item.
-
replace
is an optional formatted string of replacement text.
If the calc item contains replacement fields, each field will be replaced with the text in the replace parameter before the item is calculated.
Note:- replace1 is the text that will be replaced in the item for the first occurrence of a replacement field.
- replace[n] is the text that will be replaced in the item for the nth occurrence of a replacement field.
Evaluate interface calc item fields
An Evaluate interface calc item field calculates a selected user interface calc library item created with the Interface Designer.
- In the Calculating folder, select EvalInterfaceCalcItem (field).
-
Modify the template according to the syntax below.
-
Perform your calculations.
The particular syntax for Evaluate interface calc item fields is the following:
EvalInterfaceLibItem(fileName, itemName)
-
filename
is the full path to the calc library.
-
itemName
is the name of the calc item.
Example
{=CSC|CALL EvalInterfaceLibItem($(SysLbrDir)LibraryName.lbr", "ItemName")}
Time fields
Time fields display the time when the selected fields were last calculated.
To create a Time field, do the following:
- In the Date and time folder, select Time (field).
-
Modify the template according to the syntax below.
-
Perform your calculations.
The particular syntax for Time fields is the following:
Time(format)
-
format
is the format to output the data in.
Example
{=CSC|CALL Time("HH:mm MMM-d, yy")}
Date fields
Date fields display the date when the selected fields were last calculated.
To create a Date field, do the following:
- In the Date and time folder, select Date (field).
-
Modify the template according to the syntax below.
-
Perform your calculations.
The particular syntax for Date fields is the following:
Date(format)
The parameters are:
-
format
is the format to output the data in.
Example
{=CSC|CALL Date("dddd, MMMM, d, yyyy")}
Date and time fields
Date and time fields display the date and time when the selected fields were last calculated.
To create a Date and time field, do the following:
- In the Date and time folder, select DateTime (field).
-
Modify the template according to the syntax below.
-
Perform your calculations.
The particular syntax for Date and time fields is the following:
DateTime(format)
-
format
is the format to output the data in.
Example
{=CSC|CALL DateTime("HH:mm MMM-d, yy")}
Run macro fields
A Run macro field runs a Word macro that is available to the current document.
- In the Miscellaneous folder, select RunMacro (field).
-
Modify the template according to the syntax below.
-
Perform your calculations.
The particular syntax for Run macro fields is the following:
runMacro($macroName$)
The parameters are:
-
macroName
is the name of the Word macro to run.
Example
{=CSC|CALL RunMacro("MyMacro")}