3.5.5. PDM : Teamcenter : NX : CAD return mapping

If you want to transfer the exact mass (calculated by CAD) in a Teamcenter attribute like PDM return mapping, you need to "register your own placeholders".[28]

  1. Register the placeholders key1, key2 and key3.

  2. Now you can use them in other attributes or CreationOptions like the PDM return mapping placeholders.

Example for NX:

Ifnxteamcenter.cfg

[CadReturnMapping]
Key1=cstr(ScriptingRoot.GetAttributeUtils().LookupAttribute(activeDoc,"NB").GetValue())
Key2=cstr(ScriptingRoot.GetAttributeUtils().LookupAttribute(activeDoc,"NN").GetValue())
Key3=cstr(ScriptingRoot.GetAttributeUtils().LookupAttribute(activeDoc,"Mass").GetValue())

[TeamcenterAttributes_Item{ModelObject}]
object_desc=%Key3%

Exemplary result part in Teamcenter

Exemplary result part in Teamcenter