Close

Relief for ODA Team in Ukraine

Learn more
ODA BimRv SDK
OdBmElement::getMaterialArea Method
Syntax
C++
virtual OdResult getMaterialArea(double& value, const OdBmObjectId& materialId, bool useAsPaintMaterial) const;

Returns the area of the material with the specified id. 

 

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.

eOk if the operation completed successfully, or an appropriate error code otherwise.

Copyright © 2002-2022. Open Design Alliance All rights reserved.