GetMaterialVolume

double? GetMaterialVolume(this Element element, Material material)

Gets the volume of a material on an element.

Parameters

  • elementElement

    The element to inspect.

  • materialMaterial

    Material to query.

Returns: Volume (internal units) or null if unavailable.

Example

double? vol = element.GetMaterialVolume(mat);