Other Tedds fields

Tekla Tedds
2021
Tekla Tedds Tekla Tedds for Word

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.

Note:

The following only applies to Tedds for Word.

Tip:

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.

To create an Evaluate script calc item field, do the following:
  1. In the Calculating folder, select EvalScriptCalcItem (field).

  2. Modify the template according to the syntax below.

  3. Perform your calculations.

The particular syntax for Evaluate script calc item fields is the following:

EvalScriptCalcItem(fileName, itemName, subModuleName)

The parameters are:
  • 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.

To create a Evaluate metafile calc item field, do the following:
  1. In the Calculating folder, select EvalMetaFileCalcItem (field).
  2. Modify the template according to the syntax below.

  3. Perform your calculations.

The particular syntax for Evaluate metafile calc item fields is the following:

EvalMetaFileCalcItem(fileName, itemName, output)

The parameters are:
  • 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.

To create an Evaluate RTF calc item field, do the following:
  1. In the Calculating folder, select EvalRtfCalcItem (field).

  2. Modify the template according to the syntax below.

  3. Perform your calculations.

The particular syntax for Evaluate RTF calc item fields is the following:

EvalRTFCalcItem(fileName, itemName, output, replace)

The parameters are:
  • 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.

To create an Evaluate interface calc item field, do the following:
  1. In the Calculating folder, select EvalInterfaceCalcItem (field).
  2. Modify the template according to the syntax below.

  3. Perform your calculations.

The particular syntax for Evaluate interface calc item fields is the following:

EvalInterfaceLibItem(fileName, itemName)

The parameters are:
  • 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:

  1. In the Date and time folder, select Time (field).
  2. Modify the template according to the syntax below.

  3. Perform your calculations.

The particular syntax for Time fields is the following:

Time(format)

The parameters are:
  • 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:

  1. In the Date and time folder, select Date (field).
  2. Modify the template according to the syntax below.

  3. 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:

  1. In the Date and time folder, select DateTime (field).
  2. Modify the template according to the syntax below.

  3. Perform your calculations.

The particular syntax for Date and time fields is the following:

DateTime(format)

The parameters are:
  • 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.

To create a Run macro field, do the following:
  1. In the Miscellaneous folder, select RunMacro (field).
  2. Modify the template according to the syntax below.

  3. 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")}

Was this helpful?
Previous
Next