Returns the area of the material with the specified id.
Parameters
Parameters
Description
value
[out] the area of the material for this element as double. Returns 0.0 if the given material is not a part of this element.
materialId
[in] The material id.
useAsPaintMaterial
[in] This material is considered as paint or not. If true, the area returned as calculated from paint applied to the element. If false, the area is calculated from the element geometry and layers.
Returns
eOk if the operation completed successfully, or an appropriate error code otherwise.