Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 868 Bytes

File metadata and controls

42 lines (33 loc) · 868 Bytes

GetMaterialVolume

Description

Returns the volume of the object having the specified material.

FUNCTION GetMaterialVolume(
				h        : HANDLE;
				material : STRING): REAL;
def vs.GetMaterialVolume(h, material):
    return REAL

Parameters

Name Type Description
h HANDLE Handle to the object.
material STRING Name of material.

Examples

resultVal := GetMaterialVolume(h, 'Example');
import vs

# Returns the volume of the object having the specified material.
h = vs.FSActLayer()  # handle to the first selected object on the active layer
material = 'Example'

vol = vs.GetMaterialVolume(h, material)
vs.Message('GetMaterialVolume returned: ' + str(vol))

Version

Availability: from Vectorworks 2021

Category