Configure SpecifiedArea rule - SmartPlant Foundation - IM Update 46 - 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)

Version2018_GSG_Configure DocumentConstant rule

This rule is used to extract the content from the specified area. The attribute values are automatically generated according to the area specified in the PDF template file.

You must define the target object in the template. The target object can be defined in any of the following way:

TO=TD(tag data)/TB(title block)/<Any business object configured in the property list module>| Attr=Property Attribute

To configure the SpecifiedArea rule, use the following steps:

  1. Annotate the area in the PDF template file as shown in the above example, and then configure a rule to extract the content from the annotated area.

    For example: RT=SA|TO=TD|Attr=Name|Multi=True

  2. You can update the configured rule in the Editing Rule for <Rule Name> window, by clicking Configure Rule Configure Rule_Preprocessor Utility.

    In the Editing Rule for <Rule Name> window, you can do any one or more of the following:

    • You can select one or more of the following check boxes:

      1. Output Multiple Instances (Multi) - Select this option to extract all instances of the text from the output.

      2. Trim Text (Trim) - Select this option to remove the spaces from the extracted text.

      3. Is Common - Select this option to apply the attribute for all the business objects specific to the target object mentioned in the rule.

    • If you select all the three check boxes listed above, then the rule is configured as follows:

      RT=SA|TO=TD|Attr=Name|Multi= True|Trim=True|IsCommon=True

    • You can add a prefix and a separator to the extracted text by typing any custom text in the Prefix box and any character in the Separator box. Alternatively, you can configure the rule in the pdf template file to include the prefix and separator.

      For example:

      RT=SA|To=TD|Attr=Name|Multi=True|Separator=\|Prefix=SA|Trim=True

    • You can view the extracted content from the annotated area in the Annotated Text box in the Editing Rule for <Rule Name> window.