Cancel
Showing results for 
Search instead for 
Did you mean: 

Need help mapping NX attributes

Builder
Builder

Hi all.

I use below code for Nx weight and material attributes:

{ Dataset type="UGMASTER"
    # (hard-wired) DB_PART_NAME : "Part Name"
    # (hard-wired) DB_PART_DESC : "Part Description"
    DB_PART_RELEASE_DATE : date_released /master=iman  /description="Part Date Released"
    DB_PART_CREATION_DATE : Item.creation_date /master=iman /allow_null_value /description="DS Creation Date"
    Material:NR( UGPART-ATTR ).material /master=both /description="Material on UGPART-ATTR form"
    Weight:NR( UGPART-ATTR ).weight /master=both /description="Weight on UGPART-ATTR form"   
}

Is it correct?

I've tried to changing the Material and weight in NX but nothing changed in TC side and attributes have not any value.

10 REPLIES 10

Re: Need help mapping NX attributes

Gears Phenom Gears Phenom
Gears Phenom

What version of NX?

 

Jamie Griffis

Mercury Digital Services

Jamie Griffis | PLM Solution Architect | Engineering USA

Re: Need help mapping NX attributes

Builder
Builder
Nx 11,

Re: Need help mapping NX attributes

Gears Phenom Gears Phenom
Gears Phenom
   Your example:
Material:NR(UGPART-ATTR ).material /master=both /description="Material on UGPART-ATTR form" Weight:NR( UGPART-ATTR ).weight /master=both /description="Weight on UGPART-ATTR form"

 

Try this:

 

NX_Material:NR(UGPART-ATTR).material /master=cad /description="Material on UGPART-ATTR form"

NX_Weight:NR(UGPART-ATTR).weight /master=cad /description="Weight on UGPART-ATTR form" 

 

I don't think these can be /master=both but you can try it.

 

Jamie

Jamie Griffis | PLM Solution Architect | Engineering USA

Re: Need help mapping NX attributes

Builder
Builder

Thanks it works. Is it possible to use this NX_Weight for Structure Manager weight roperty by just mapping attributes.

If needs BMIDE, could you please help me how?

 

Thanks

Re: Need help mapping NX attributes

Gears Phenom Gears Phenom
Gears Phenom

You'd need to store the weight in an attribute on the Item Revision. Then you can display it in the BOM.

 

I think you'll need to create this attribute as a compound property.


In BMIDE, on your Item Revision create a new compound attribute to store the weight and name it however you wish. XY8_NX_Weight 

 

Example of compound property path:

XY8_ItemRevision.IMAN_specification

     UGMASTER.ref_list

          UGPartMassPropsForm.mass

 

Jamie Griffis | PLM Solution Architect | Engineering USA

Re: Need help mapping NX attributes

Siemens Esteemed Contributor Siemens Esteemed Contributor
Siemens Esteemed Contributor

I just tested this and can confirm that it works.

 

Attribute mapping under UGMASTER:

  

"NX_Material" : NR(UGPART-ATTR).material /master=cad /description="Material on UGPART-ATTR form"
"NX_Weight" : NR(UGPART-ATTR).weight /master=cad /description="Weight on UGPART-ATTR form"

 

Compound property on ItemRevision business object (using BMIDE):

 

Screenshot - 5_17_2018 , 12_17_24 PM.png

 

Created a block in NX and added a material (ABS):

 

Screenshot - 5_17_2018 , 12_20_43 PM.png

 

Saved to Teamcenter - UGPART-ATTR (named reference form):

 

Screenshot - 5_17_2018 , 12_21_47 PM.png

 

View > Properties on ItemRevision (based on compound property):

 

Screenshot - 5_17_2018 , 12_23_07 PM.png

 

Finally, add bl_rev_a2_NX_Weight as a column to Structure Manager:

 

Screenshot - 5_17_2018 , 12_24_42 PM.png

 

Regards, Ben

Ben Broad | PLM Enthusiast | Siemens GCSS

NX (v17 - 1876) | Teamcenter (9 - 12)
Value Based Licensing | Adaptive UI | BETA Registration

Re: Need help mapping NX attributes

Builder
Builder

Thanks alot.

I did the procedure (add properties, deploy) but nothing added in Structure Manager fields.

Is there any other thing to do?

 

Thanks

 

Screenshot_1.png

 

 

 

Re: Need help mapping NX attributes

Pioneer
Pioneer

Hi @sma,

 

You are required to add the property in BOM Line object(Search in BMIDE for BOM Line) and traverse up to your custom property in BMIDE, then only it gets displayed in structure manager.

Or

Add the Custom object in the global constants Fnd0BomLineRevConfigProps.

 

Thanks.

Re: Need help mapping NX attributes

Builder
Builder
Thanks @siemi
I've tried adding custom prop to Fnd0BomLineRevConfigProps but nothing changed. Would you think of any other reason preventing the new column to be shown in Structure Manager? It's confusing, cause the recipe is direct and simple but I cant get it working.