Cancel
Showing results for 
Search instead for 
Did you mean: 

Extracting Material density from the assigned material

Pioneer
Pioneer

Hi ,

 

How can I extract the material density from the assignend material.

2 REPLIES

Re: Extracting Material density from the assigned material

Siemens Phenom Siemens Phenom
Siemens Phenom

You need to get the PropertyTable from the material, then query the Density property.

 

See this sample code in the Solution Center:

 

https://solutions.industrysoftware.automation.siemens.com/view.php?sort=desc&q=material+density&dt=n...

Re: Extracting Material density from the assigned material

Honored Contributor
Honored Contributor

Do you have a reference to a body with the assigned material? If so, you can use the {body}.Density property to get the density of the body in kg/m^3. If desired, you can use NX functions to convert the value to a different unit system.