17.9. NX-Teamcenter: Assembly templates not recognized during Teamcenter export

Assembly templates are not recognized during Teamcenter export.[76]

Teamcenter can have separate item templates for Assemblies and Parts. The type of the template is stored in the "class" attribute of the "ObjectData" section of each template's palette in the relevant .pax file (usually nxdm_ugs_model_templates.pax).

"ModelTemplate" is the default template type, suitable for parts and assemblies. "AssemblyTemplate" is the type specifically meant for assembles. There are also numerous other types meant for the various NX applications, such as Shape Studio or Routing Electrical.

When a template is selected for item creation in the NX/TC environment, the new NXOpen interface (NX 10 and later) requires all parameters of that template to match those in the pax file. There is no way of reading these parameters short of parsing the pax file manually and even one incorrect parameter will result in a "The selected template doesn't exist" error message.

Issue #67541 takes care of most of these parameters by adding them to ifnxteamcenter.cfg as keys that the user must set in accordance with their custom template parameters.

As we have had no templates other than the default "ModelTemplate" class, this class name was hardcoded into the interface. Now that customers want to use other template classes, this has to be added to the config keys as well.




[76] #93671