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| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to object. |
| material | STRING | Name of material. |
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))VS Functions: GetMaterialVolume
Availability: from Vectorworks 2021