Element.GetMaterialVolume
Method
Description:
Gets the volume of the material with the given id.
Gets the volume of the material with the given id.
Parameters
Parameter | Type | Description |
---|---|---|
materialId | ElementId | The material id returned from <a href="6011352e-151b-b8ac-14cc-45970f2fe5ad.htm">GetMaterialIds(Boolean)</a>. |
Return Value
Type | Description |
---|---|
Double | The volume of the material for this element. Returns 0.0 if the material is not a part of this element. |
Exceptions
Exception | Condition |
---|---|
ArgumentException | materialId is not a valid Element identifier. |
ArgumentNullException | A non-optional argument was null |