Configure Table rule - 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)

Fusion 2018_GSG_Configure Table rule

This rule is used to extract information from a table within the pdf file. The table rule is created to identify the end of the table.

You can define the table rule in the PDF template file as shown in the above example by doing the following:

  1. You must first annotate the table and configure a rule before you extract the content present in the desired annotated columns. In the above example, table rule is configured in the following way:

    RT=TR|TABLENAME='TABLE01'|TO=TD|RepTab=True|Trim=True|MultiPage=True|NoOfPages=5.

    Here,

    • RT stands for Rule Type which can be TR (Table Rule) or TCol (Table Column) based on the annotated area.

    • TABLENAME is defined as "TABLE01". For columns, attribute names (Attr) are defined.

    • TO stands for Target Object which is defined as Tag data. By setting this, we can extract data from the table as tag data.

    • RepTab stands for Repeat Table. By setting this parameter to True, we are applying this table rule to another table with the same co-ordinates as this table is present in the PDF file.

    • Trim is set to True to remove the spaces from the extracted text.

    • MultiPage is set to True to apply this rule to the table if it is continued in multiple pages.

      After setting MultiPage to True, NoOfPages is given to extract the data from the table continued in given number of pages.

  2. Now, configure a rule for the desired columns in the table by annotating the column headers to extract the data present in the respective columns.

    The area of the annotation for column header cell must be same as the area of the data cell present in the respective column.

    In the above example, the table column rule for the column ItemNĀ° is configured in the following way:

    RT=TCol|Attr=Name|TO=TD|RepTab=True|Trim=False|MultiPage=False|NoOfPages=5

    Here,

    • RT (Rule Type) is defined for Table Column (TCol)

    • Attr stands for Attribute name which is set as "Name".

  3. To update the configured table rule, do the following in the Associate Rules for Template pane:

    1. Select the Rule Type as TableRule.

    2. Select the target object from the Target Object drop-down list.

      If the Table has no target object, then the target object present on any column is considered.

    3. Open the Editing Rule for <Rule Name> window by clicking the Configure Rule Configure Rule_Preprocessor Utility, and then do the following:

      • To apply this rule to the table continued in multiple pages, select Multi Page and type the number of pages in NoOfPages text box to extract the data from the table continued in given number of pages.

      • To apply this table rule to another table which is present at the same coordinates as the one for which the table rule is created, select Repeat Table.

      • Select Trim Text check box to remove the spaces from the extracted text.

      • You can add a prefix and a separator to the tag extracted 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=TCol|Attr=Name|TO=TD|RepTab=True|Separator=_|Prefix=Tab|Trim=False|MultiPage=False|NoOfPages=5