How to map the Project ID to an attribute in NX.
SolutionAs an example, in Teamcenter there is this project:
Project ID: Project1
Project Name: SiemensAll
Your mapping will depend on what information you want to see in NX.
I mapped this 3 different ways so you can see the result.
{ Dataset type="UGMASTER"
"DB_PART_NAME" : Item.object_name /write_once /description="Part Name"
"DB_PART_DESC" : Item.object_desc /write_once /description="Part Description"
{Item type="Item"
"DB_PROJECT_ID" : ItemRevision.project_ids /master=iman /allow_null_value /description="Project ID"
"DB_OWNING_PROJECT1" : ItemRevision.projects_list /master=iman /allow_null_value /description="Projects List String"
"DB_OWNING_PROJECT2" : ItemRevision.project_list /master=iman /allow_null_value /description="Project List Typed Reference"
}
}
See below to see the result of each mapping...
Project IDs (ItemRevision.project_ids): will only report back the Project ID, and not the Project Name.
Project Objects (ItemRevision.projects_list): will report back the Project ID, and the Project Name.
Projects (ItemRevision.project_list): will report back the Project ID, and the Project Name.
If the object is assigned to multiple projects, the Properties will look like this: