Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 853 Bytes

File metadata and controls

41 lines (33 loc) · 853 Bytes

SetMaterialFillStyle

FUNCTION SetMaterialFillStyle(
				materialHandle : HANDLE;
				fillStyle      : LONGINT): BOOLEAN;
def vs.SetMaterialFillStyle(materialHandle, fillStyle):
    return BOOLEAN

Parameters

Name Type Description
materialHandle HANDLE
fillStyle LONGINT InternalIndex of fillStyle

Examples

resultOK := SetMaterialFillStyle(materialHandle, 1);
import vs

materialHandle = vs.FSActLayer()  # handle to the first selected object on the active layer
fillStyle = 0

ok = vs.SetMaterialFillStyle(materialHandle, fillStyle)
if ok:
    vs.Message('SetMaterialFillStyle succeeded')
else:
    vs.Message('SetMaterialFillStyle failed')

Version

Availability: from Vectorworks 2021

Category