Incorrect Material Density

milindnalgirkar
Enthusiast
Enthusiast

Incorrect Material Density

milindnalgirkar
Enthusiast
Enthusiast

Hello,

We applied floor material as "Plywood, Sheathing" and in Revit its shown the density = 34.46 pcf. as shown below snap:

mtl density.png

and when we retrieve it through programmatically its getting density = 1.07 pcf. as shown in below code block snap:

code block.png

 

Kindly suggest the API / Function that gets the correct value of density.

 

Thanks and regards,

Satwadhir.

0 Likes
Reply
Accepted solutions (1)
498 Views
2 Replies
Replies (2)

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi @milindnalgirkar,

UnitWeight and Density are not same.

To get what you want try using the below code

string strdensity = UnitFormatUtils.Format(units, UnitType.UT_MassDensity, asset.Density, false, false);

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes

milindnalgirkar
Enthusiast
Enthusiast

Thanks for your quick reply.

0 Likes