Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Map Teamcenter Owner_id to NX

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi there,

Please help to solve my attribute mapping problem.

I have made a custom item type in BMIDE and custom properties (c3d_description_2, and c3d_material). Then I have the following mapping file:


{ 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"

DESCRIPTION_2: ItemRevision.GRM(IMAN_master_form,C3D_partRevisionMaster).c3d_description_2 /master=cad /description="Description_ENG"
C3D_MATERIAL: ItemRevision.GRM(IMAN_master_form,C3D_partRevisionMaster).c3d_material /master=cad /description="Material"
CHECKED_OUT : checked_out /master=iman /description="Checked Out"
CHECKED_OUT_BY : checked_out_user /master=iman /description="Checked Out By"
OWNER_ID : owning_user.user_id /master=iman /description="Owning user id"
}

 

The custom properties are (c3d_description_2, and c3d_material) working well, but the CHECKED_OUT, CHECKED_OUT_BY, OWNER_ID in NX shows <No Value>

 

Anybody have an idea why NX not whows these properties?

 

Thank,

Laszlo

6 REPLIES 6

Re: Map Teamcenter Owner_id to NX

Solution Partner Esteemed Contributor Solution Partner Esteemed Contributor
Solution Partner Esteemed Contributor
I don't know your exact syntax but this will get the conversation started...

The checked out and checked out by could be null so you'll need to allow null with "/allow_null_value" switch. The owning_user may work by itself without the user_id (similar to checked_out_user) but more likely will require the user_name. Not sure what you're going after for CHECKED_OUT (date, logical[y/n])?

For your custom Item type...
{Dataset type ="UGMASTER"
# Global (generic) declarations
OWNER_ID: owning_user.user_name ...
CHECKED_OUT_BY: checked_out_user.user_name ...
{Item type ="C3D_Item"
# Properties specific to this Item type
}
}

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Map Teamcenter Owner_id to NX

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Thanks for the answer. First of all, I would like to use the owner_id to replace the attribute "designer" what we use before the Teamcenter. My idea the drawing shows the owner_id of NX model in the title block as "designer" All other Checked-out, and checket-out-by currenly less important, and I think it will work similar to owner_id.

 

So based on your suggestion I made a change in my mapping file:

{ 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"
CHECKED_OUT : checked_out /master=iman /description="Checked Out" /allow_null_value
CHECKED_OUT_BY : checked_out_user /master=iman /description="Checked Out By" /allow_null_value
OWNER_ID : owning_user.user_id /master=iman /description="Owning user id" /allow_null_value
{ Item type="C3D_part"
DESCRIPTION_2: ItemRevision.GRM(IMAN_master_form,C3D_partRevisionMaster).c3d_description_2 /master=cad /description="Description_ENG"
C3D_MATERIAL: ItemRevision.GRM(IMAN_master_form,C3D_partRevisionMaster).c3d_material /master=cad /description="Material"
}
}

 

Still <No Value> in NX.

Re: Map Teamcenter Owner_id to NX

Solution Partner Esteemed Contributor Solution Partner Esteemed Contributor
Solution Partner Esteemed Contributor
Try: owning_user.user.user_id

user_id is a property of the User object.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4

Re: Map Teamcenter Owner_id to NX

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

No success, still <No Value> :(

Re: Map Teamcenter Owner_id to NX

Gears Phenom Gears Phenom
Gears Phenom

Try :

Item.owning_user.person.user_name 

or

ItemRevision.owning_user.person.user_name

Jamie Griffis | Teamcenter Architect | Applied CAx, LLC

Re: Map Teamcenter Owner_id to NX

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Sorry guys, it was my mistake, the original mapping is working. Something was wrong with my nx template file.