Cancel
Showing results for 
Search instead for 
Did you mean: 

Material and Weight Properties in Teamcenter

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hi guys,

 

I've defined MyMaterial and MyWeight properties to my ItemRevision.

Imported those attributes and added them to stylesheet so that I can see them under Summary in Teamcenter Rich Client.

I also put them into the drafting sheet automatically, everything works for now.

 

What I want to do is, if I assign a material inside NX, I want the material name to override MyMaterial's value. And also the calculated weight to override MyWeight attribute that I defined.

After assigning material in NX it's attribute becomes NX_Material, and weight is NX_Mass.

 

How can I make MyMaterial get NX_Material's value? (same for MyWeight)

 

Cem

6 REPLIES

Re: Material and Weight Properties in Teamcenter

Esteemed Contributor
Esteemed Contributor

You could use an expression to read the OOTB attribute and write it to your custom one.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX12.0

How to Get the Most from Your Signature in the Community

Re: Material and Weight Properties in Teamcenter

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Sounds like a good idea.

Can you give a small example?

Also should I put that expression in the model template or drafting template?
To ensure that it is always done automatically?

 



Cem 

Re: Material and Weight Properties in Teamcenter

Esteemed Contributor
Esteemed Contributor

I would place them into the model template, since the model attributes are inherited by the drawing anyways and the weight is calculated in the model.

 

ug_setPartAttrValue("MyMaterial",ug_askPartAttrValue("NX_Material"))
ug_setPartAttrValue("MyWeight",ug_askPartAttrValue("NX_Mass"))

 

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX12.0

How to Get the Most from Your Signature in the Community

Re: Material and Weight Properties in Teamcenter

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor
I guess I should update the mapping to "/master=both" right.

Anything else needs to be taken care of?

Cem

Re: Material and Weight Properties in Teamcenter

Esteemed Contributor
Esteemed Contributor

Generally I always have master set to both, since it doesn't make sense to have to switch applications to fill in attributes Smiley Wink

 

I don't think there is more to take care of, you will have to test if the update is working as expected, since prior to NX 8 there have been problems with this.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX12.0

How to Get the Most from Your Signature in the Community

Re: Material and Weight Properties in Teamcenter

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor
Thanks Stefan, it worked beautifully!


Cem