3.3.2.2.2.3. Additional Task: Attribute Mapping

Example: We want to change the Description of the Item Revision and use LINA of the 3D as value.

  1. In order to be able to use attribute mapping, activate the key PdmOnCheckin_02.EXECUTE with value _TC_HOOK_SERVICE.mapAttributes.

    [CreationOptions(is3d):include(CreationOptions)] 
    PdmOnCheckin_02.EXECUTE=_TC_HOOK_SERVICE.mapAttributes

  2. Create the following blocks and keys according to the desired Object/Reference where the change should take effect.

    [AttributeMapping(is3d)] 
    Attr_Content_04=TeamcenterAttributes_Item{ModelObject}>>revision_list{ModelObjectVector} 
    Attr_Section_04=TeamcenterAttributes_Item{ModelObject}>>revision_list{ModelObjectVector} 
    
    [TeamcenterAttributes_Item{ModelObject}>>revision_list{ModelObjectVector}]
    object_desc=?_FORMAT_0("<ATTR(english,LINA)>").value()

  3. To figure out the Real Name which is used for Description in Teamcenter, do the following:

    1. Select an Item Revision.

    2. Open the context menu and click on View Properties.

      -> The dialog Properties -> Item is opened.

    3. Click on the button Print object properties.

      -> The Print dialog is opened.

      If the Real Name is not shown, activate it in the Print Format dialog (opened by clicking on Set result format).

  4. Add the key object_desc (which is matching the Real Name in Teamcenter) with the following value containing the desired PARTsolutions attribute (in this example "LINA)".

  5. Terminate the process "pddlhost" with "vbbhost" in the command line.

  6. Perform a new export.

    -> Now the Description will show LINA: