Edit the pattern for a file part - SmartPlant Foundation - IM Update 48 - Help - Hexagon

SmartPlant Foundation Help

Language
English
Product
SmartPlant Foundation
Search by Category
Help
SmartPlant Foundation / SDx Version
10
SmartPlant Markup Plus Version
10.0 (2019)
Smart Review Version
2020 (15.0)

The Set Part command allows you to change the sequence of the characters that form a search pattern for each file part.

  1. In the Document Discovery Parts page, select a file part for which you want to update the sequence of characters or the search pattern.

  2. Click Set Part .

  3. In the Options section, select Full String or Pattern from the Set By list. Depending upon the selection made here, the options change in the following pane.

    • Select the Full String option from the Set By list to represent each of the existing characters in the file part as a variable or constant.

      • Character Range - Select a character range set from the list to define characters from the selected set in the pattern. The character range set that is set as default in the Character Range page of the Central Settings module is displayed by default in the list.

      • Variable - The characters in the string are set to variable. Additionally, the characters can be designated as an uppercase letter, lowercase letter, a number, or any combination of the three.

      • Constant - The characters in the string will be set to a constant value.

    • Select the Pattern option from the Set By list to build a specific pattern for the selected file part.

      • Character Range - Select a character range set from the list to define characters from the selected set in the pattern. The character range set that is set as default in the Character Range page of the Central Settings module is displayed by default in the list.

      The uppercase, lowercase, and number options are available depending upon the character range set for the selected language in the Character Ranges page of the Central Settings module.

  4. Click Accept Changes .

    SHARED Tip If you want to abandon your changes, click Reject Changes .

The characters set to pattern are displayed in a simple representation on the file part. When the cursor pauses over the file part, the specific pattern is displayed.

  • The pattern corresponding to each character in the simple representation is as follows:

    • A - Any uppercase letter

    • a - Any lowercase letter

    • # - Any digit from zero to nine

  • If you define a character to be either a letter or a number, then the character is displayed as a lowercase or uppercase letter depending upon the selection of lowercase or uppercase for alphabet.

  • The constant value in the file parts is displayed in bold.

  • New parts can use defined patterns, but only when the pattern is defined using the Set Part option.

Pattern Matching

Pattern-matching allows you to match each character in a string against a specific character, a wildcard character, a character list, or a character range. The following table shows the characters allowed in a pattern and what they match.

Characters in pattern

Matches in string

?

Any single character

*

Zero or more characters

#

Any single digit (0–9)

[ charlist]

Any single character in charlist

[! charlist]

Any single character not in charlist

Edit pattern for file part using regular expressions

The Set Part command allows you to change the sequence of the characters that form a search pattern for each file part.

  1. In the Document Discovery Parts page, select a file part for which you want to update the sequence of characters or the search pattern.

  2. Click Set Part .

  3. In the Options section, select Full String or Pattern from the Set By list. Depending upon the selection made here, the options change in the following pane.

    • Select the Full String option from the Set By list to represent each of the existing characters in the file part as a variable or constant.

      • Character Range - Select a character range set from the list to define characters from the selected set in the pattern. The character range set that is set as default in the Character Range page of the Central Settings module is displayed by default in the list.

      • Variable - The characters in the string are set to variable. Additionally, the characters can be designated as an uppercase letter, lowercase letter, a number, or any combination of the three.

      • Constant - The characters in the string will be set to a constant value.

    • Select the Regular Expression option from the Set By list to build a specific regular expression for the selected file part.

      • The following table displays the regular expressions notations corresponding to each character:

        Notation

        Description

        \d

        Digits

        \p{Lu}

        Uppercase letters

        \p{LI}

        Lowercase letters

        \p{Lo}

        A letter or ideograph that does not have lowercase and uppercase variants, for example, あ

      • You must enter an example file part in the Example box.

  4. Click Accept Changes .

SHARED Tip If you want to abandon your changes, click Reject Changes .