##########################
Import Additional Data
##########################
Tetra4D Automate provides the ability to import additional data into the PDF document to complement
the CAD data:
- Meta-data,
- Text information to populate text fields,
- Part list.
XML file to import meta-data
===========================
XML schema of files that enable the import of meta-data.
.. code-block:: xml
Multiple attributes & values can be specified for every key
Sample of an XML file where several attributes (SUPPLIER, PRICE, SUPPLIER_REFERENCE) are imported and
mapped to the 3D parts, using in that case the name of the part as mapping key.
.. code-block:: xml
XML file to define values to populate text fields
================================================
The following is XML schema of data field XML file.
.. code-block:: xml
Each field has one value.
Sample of an XML file where several values to populate text fields are defined.
The mapping key are project, description, revision, and must be defined in the template using the Tetra4D Enrich feature “Set populate method for text fields).
.. code-block:: xml
XML file to define a table
========================
Sample of an XML file that enable to import a part list in a template.
The information are:
- | Coldefs: Definition of the names of the columns of the table.
| Remark:
| The Coldefs values enable to map the table with the parts from the 3D annotation.
| In such a case, the selection of a row in the table will highlight the mapped part in the 3D
| annotation and conversely, the selection of a part in the 3D annotation will highlights the
| mapped row in the table.
- | Tr Is-header=true: Definition of the titles of the columns.
| Remark:
| This option enables to replace the attributes names defined by the Coldefs by a text labels.
- | Tr: Definition of the values for the rows of the table.
.. code-block:: xml
| Item |
Supplier |
Reference |
| A4123589 |
Supplier A |
RefA01 |
Mapping an imported table with 3D parts
--------------------------------------
The mapping of the imported table with the 3D parts is based on the values of one specified CAD attribute.
To enable the mapping, the table must contain a column that lists the values of the attribute used as the
mapping key.
The definition of the column used to map the table with the components of the 3D annotation is done by the
is-key value.
In addition to the mapping key definition, the is-visible value makes it possible to hide one column
(usually the one used for the mapping) if it is not relevant to show these values in the table.
Example:
.. code-block:: xml
- Above, the attribute ItemNumber is the mapping key (``is-key="true"``)
- The corresponding column will be visible (``is-visible="true"``)