Defining CSV/JSON File for Custom Attribute

You can define a CSV or JSON file for custom attribute mapping on default types and subtypes. The following mappings are mandatory in the CSV/JSON file:

  • FileName
  • FilePath
  • Maturity
  • Revision

See Also
Configuring File Transition Assistant
Defining the Mapping File
  1. In a CSV or JSON file, define the following mappings:

    Note: If the file path in the CSV file contains a colon (`:`), a backslash (`\`), or a forward slash (`/`), do not use any of these characters as the delimiter or as the custom delimiter.

    Column Name Description Example
    FileName Name of the file with extension and without the file path specified. This mapping is mandatory. Wheel.CATPart
    FilePath Specify the file path. Specify the full path of the file including the file name as it exists in the file system. This can be UNC path or mapped drives. This mapping is mandatory. D:\HatchBackAssembly\Released\Wheel.CATPart
    Maturity Maturity of the file (Should be 3DEXPERIENCE maturity states). This mapping is mandatory. IN WORK
    Revision Revision of the file (Should be compliant with 3DEXPERIENCE Revision settings).
    Note: Revisions for non-CAD documents is not supported in File Transition Assistant. This mapping is mandatory.
    A.1
    Document_Type Type specified for the document in 3DEXPERIENCE.
    Note: For subtypes, this mapping is not considered.
    For example, for default types, the Document_Type for product part is specified as VPMReference.
    <Custom attributes> Enter the custom attributes defined in 3DEXPERIENCE and specify the value defined for the file for this attribute. You can enter as many custom attributes as have been defined on the object type or subtype. For example, for a custom attribute RevisionComment, enter the revision comment entered for the file as its value.
    Notes: Custom attributes defined on subtypes are supported only when the SubType column is specified in the mapping CSV file. This is supported only in a private cloud environment. EIN and Classification are not supported with subtype.
    RevisionComment
    Note: The name of the property should be the same for all CATIA files being migrated in the session. If some CATIA files have different property names, change the value of Revision and Maturity property names and migrate the relevant data. Restart the services if you made any change in the configuration.
  2. Save the file once defined.
    The following is a sample JSON file with the mandatory mappings for default types:
    [
      {
        "filename": "ASY-0000075-Product1.CATProduct",
        "filepath": "D:\\CATFiles\\ASY-0000075-Product1.CATProduct",
        "revision": "A",
        "maturity": "In Work",
        "document_type": "VPMReference",
        "custom_attributes": [
          {
            "name": "RevisionComment",
            "value": "First revision",
            "type": "String"      
          },
          {
            "name": "BoolCustomAttr",
            "value": "TRUE",
            "type": "Boolean"
          },
          {
            "name": "AuthorizedString",
            "value": "Some value for assembly",
            "type": "String"
          }
        ]
      },
      {
        "filename": "PRT-0000306-Part1.CATPart",
        "filepath": "D:\\CATFiles\\PRT-0000306-Part1.CATPart",
        "revision": "A",
        "maturity": "In Work",
        "document_type": "VPMReference",
        "custom_attributes": [
          {
            "name": "RevisionComment",
            "value": "First revision",
            "type": "String"      
          },
          {
            "name": "BoolCustomAttr",
            "value": "TRUE",
            "type": "Boolean"
          },
          {
            "name": "AuthorizedString",
            "value": "Some value for assembly",
            "type": "String"
          }
        ]
      }
    ]
    

    The following is a sample mapping for subtypes:

    "customattributes": [
    			{
    				"name": "AttributeID",
    				"value": "100",
    				"type": “AttributeIDType”
    			}
    		]
    
    The following is a sample mapping for subtypes with extensions:
    "customattributes": [
    			{
    				"name": "SubtypeID.Extension’sAttributeID",
    				"value": "100",
    				"type": “ExtensionType”
    			}
    		],
    

    The following is a sample CSV file with the mandatory mappings: