Define an EDE Expression - Intergraph Smart Instrumentation - Help

Intergraph Smart Instrumentation Help

Language
English
Product
Intergraph Smart Instrumentation
Search by Category
Help
Smart Instrumentation Version
13.1

To build an EDE expression, click EDE Expression Builder, from the View Actions toolbar:

  1. Type a name in the Expression Name field.

  2. In the blank box (under the Expression Name field), type your expression directly, or select the expression components from the: Attributes, Functions, Operators, and Constants columns.

    SHARED Tip Click a Function, or Operator once to see the syntax and the arguments required for it. Click the function twice to enter it to the Expression box.

  3. To build your expression, start by using a Function. The empty parenthesis after the function allow you to enter the conditions and values to build your expression. For example, to see the length of the items (101-A -100, 101-F -100, 101-F -102) in the column: Loop Name. The Expression syntax is: Length ([Loop Name]). The returned result is: 10.

    :

    • Data used from the EDE View is case sensitive, make sure when using data in your expression that the data is the same as in the EDE View. For example, to use the word "Field" in your Expression (displayed under Attribute: Instrument Location), needs to be entered with capital F, exactly as listed in the EDE View.

    • Place quotes before and after any value or part of a value in your string. For example: Contains ([Instrument Name], "FT").

    • Enter Attributes in square brackets, and any string (numbers or characters) in the parentheses provided with the Function you selected. For example, to return the first three characters of the instruments listed in the column: Instrument Name, enter the following:
      Substring ([Instrument Name], 1,3).

    • Spaces are not valid: Replace spaces with the underscore character (_) and period (.) as word separators.

    • Valid first characters: First character of a name must be a letter, an underscore (_), or a backslash (\). After the first character in the name, letters, numbers, periods, and underscore characters can be used.

    • Negative numbers: (-X) must be in parenthesis. Example: 1 *( -1) = -1

    • When your Expression is valid, the OK button turns active.

  4. Scroll to the end of the EDE View to see the new Expression column.

  5. To edit your Expression, click the EDE Edit Expression, in the Expression's column header. The Expression Builder dialog box opens.

  6. Once you are finished editing the Expression, click OK, the software re-generates the EDE View.

  7. To delete your Expression, from the Expression Builder, click the Remove Item button.