Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 935 Bytes

File metadata and controls

46 lines (36 loc) · 935 Bytes

GetMaterialArea

Description

Returns the surface area of the object having the specified material.

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

Parameters

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

Examples

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

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

area = vs.GetMaterialArea(h, material)
vs.Message('GetMaterialArea returned: ' + str(area))

See Also

VS Functions: GetMaterialVolume

Version

Availability: from Vectorworks 2021

Category