About Attribute Mapping

Attribute mapping helps you synchronize CATIA V5 attributes with the exposed database attributes.

This page discusses:

When you perform a save in CATIA V5, you can transfer the attribute values from the CATIA V5 file to 3DEXPERIENCE. When you perform Open in CATIA V5, you can transfer the attribute values from 3DEXPERIENCE to CATIA V5.

Recommendation: Begin the definition of your CAD collaboration settings by the mapping of attributes.

Once a user starts working with Design with CATIA V5, you can update the mapping but the modification applies only if the user also modifies the file.

You can define attribute mapping in two ways:

Important: When a CAD attribute is mapped from 3DEXPERIENCE to CATIA V5, the attribute value is updated in CATIA V5 only if the object is modified outside CATIA V5.

Supported Types

For attribute mapping, CATIA V5 types and 3DEXPERIENCE native types are supported.

Supported Attributes

  • You can map any V5 attribute type to 3DEXPERIENCE string attribute type (that is Real->String, Boolean ->String)
  • You can map any V5 attribute type to its corresponding 3DEXPERIENCE attribute type (Real<->Real, Boolean<->Boolean, Integer<->Integer, String<->String)
  • Mapping is supported when its value matches the target attribute type and unit, that is:
    • String->Integer
      • If V5 String attribute value is “3”, mapping will be successful and 3DEXPERIENCE integer attribute value will be 3
      • If V5 String attribute value is “3.2”, mapping will not be successful as 3DEXPERIENCE integer attribute value cannot be 3.2
    • Real->Integer
      • If V5 Real attribute value is 3, mapping will be successful and 3DEXPERIENCE integer attribute value will be 3
      • If V5 Real attribute value is 3.2, mapping will not be successful as 3DEXPERIENCE integer attribute value cannot be 3.2
  • While mapping attributes, you can have different locales between the client and the server (for example the client is French and the server is English).
    • Real <->Real attribute mapping is defined
    • When you save 3.6 V5 attribute, the value will be 3.6 in 3DEXPERIENCE

Notes:
  • Multivaluated attributes are not supported for attribute mapping.
  • Date attribute type mapping is not supported.

Supported Keywords

Given below are the prefixes and the CATIA attribute types:

1. CATIA system attributes sys:

Attributes: PartNumber, Description, Revision. They can be added in a mapping with a “sys:” prefix to their name. E.g. sys:Revision

For the mechanical properties like Mass, Volume, Density, etc., the user can specify if it is desired to consider all the “bodies” for their computations or only a “main body”. This can be done by appending “body=all” or “body=main” string to attribute name separated by a colon “;”.

Example: sys:Mass;body=all

If body option is not specified in mapping, then by default “body=all” is considered.

The below table summarizes the availability per type and the available support for both way or single way synchronization.
CATProduct Embedded Component CATPart CATDrawing CATShape
V5EnvironmentName -> -> -> -> ->
Revision <-> <-> <-> NA NA
Part Number <-> <-> <-> NA NA
Definition <-> <-> <-> NA NA
Nomenclature <-> <-> <-> NA NA
Source <-> <-> <-> NA NA
Description <-> <-> <-> NA NA
Density NA NA -> NA NA
Mass NA NA -> NA NA
Centerofgravity NA NA -> NA NA
Inertiamatrix NA NA -> NA NA
Volume NA NA -> NA NA
Surfacearea NA NA -> NA NA
Boundingbox NA NA -> NA NA
Here,
  • <-> : Mapping is supported from CATIA V5 to 3DExperience and vice versa.
  • -> : Mapping is supported from CATIA V5 to 3DExperience only.
  • NA: Mapping is not supported.

2. CATIA user-defined custom attribute cus:

User-defined custom attribute (Edit > Properties > Define other properties > New Parameter of type)

The cus: attributes are only supported for parts, EC's and products.

3. CATIA user-defined parameter param:

The param: attributes are supported in parts, products, EC's, drawings and shapes.

You can map parameters under geometrical sets, parameter set, or parameter subset - the ones under main structure and different features to 3DEXPERIENCE. You can view the parameters in the Formulas window.

Main structure: product, part, embedded component, drawing.

Features: PartBody, geometrical set, material parameters of a part.

To map a parameter, you must use the string visible in the Formulas window (name or name with path) of CATIA V5.

If you change the CATIA V5 language, the parameter's name, or name with path will be translated if those parameters or set/subsets are not renamed. For example, COQ\Circle.2\Radius seen in CATIA V5 formula window launched with English is changed to COQ\Cercle.2\Rayon when the language changed to French. It is recommended to rename parameters so that they are not affected by CATIA V5 language change, and the mapping works for all CATIA V5 environments.

The parameters on instances and external parameters are not supported for attribute mapping.

4. Create: Keyword

This keyword creates custom attributes or parameters automatically (on the fly) if they do not exist in a CAD document. For example, param:create:TestParam1 or cus:create:TestAttribute1

The behavior of the create: keyword is not applicable for CATIA V5 to 3DEXPERIENCE platform mapping; it is not supported. This keyword is not supported for instance attribute mapping.

Important: By default:
  • The part number of products and parts on CATIA V5 files is mapped to V_Name ("Title”) attribute of the VPMReference database object and vice versa.
  • The description of products and parts on CATIA V5 files is mapped to V_description ("Description") attribute of the VPMReference database object and vice versa.

Drawing Attributes

It is possible to define a mapping with a Text, Table and 2DComponent text in a CATDrawing.

Administrator uses the following syntax for defining a mapping:

1. Text Attribute:

text:TextTest;view=Front view;sheet=Sheet1

where, “TextTest” is Text field in a “Front View” of “Sheet1” in a CATDrawing

It can also be defined in the following ways if there is no conflict,

  • text:TextTest
  • text:TextTest;view=Front view
  • text:TextTest;sheet=Sheet1

2. Table Attribute:

table:Table.1;view=Front view;sheet=Sheet2;col=2;row=3

Where, Table.1 is a table in “Front view” in a “Sheet2” with a mapped attribute at Column2 and Row3 in a CATDrawing.

It can also be defined in the following ways if there is no conflict:

  • table:Table.1;col=2;row=3
  • table:Table.1;view=Front view;col=2;row=3
  • table:Table.1;sheet=Sheet2;col=2;row=3

3. 2DComponent Text:

2DComponent:2DComponent.1;view=Front view;sheet=Sheet2DC;2DComponent=2D Component.1 (Instance);2DComponentText=2DCText.

Where, 2DComponent.1 is instantiated as “2D Component.1 (Instance)” in “Sheet2DC” Sheet in “Front View” with a “2DCText” as modifiable 2DComponent Text.

It can also be defined in the following ways if there is no conflict:

  • 2DComponent:Comp2;2DComponentText=Text2
  • 2DComponent:Comp2;2DComponentText=Text2;View=Background View
  • 2DComponent:Comp2;2DComponentText=Text2;Sheet=Sheet.1
  • 2DComponent:Comp2;2DComponentText=Text2;Sheet=Sheet.1;View=Background View

Where Comp2 is a 2D Component instance and Text2 is modifiable text in a “Background View” of “Sheet.1”