Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.03 KB

File metadata and controls

49 lines (38 loc) · 1.03 KB

SetMtlPenBackColor

Description

Sets the pen background color of the specified material. The color must be specified using the RGB components of the desired color. RGB values are in the range of 0~65535.

PROCEDURE SetMtlPenBackColor(
				material : HANDLE;
				color    : LONGINT);
def vs.SetMtlPenBackColor(material, color):
    return None

Parameters

Name Type Description
material HANDLE Handle to material.
color LONGINT RGB color value.

Remarks

Sets the pen background color of the material.

Examples

ColorIndexToRGB(214,cRed,cGrn,cBlu);
SetMtlPenBackColor(mtlHandle,cRed,cGrn,cBlu);
SetMtlPenBackColor(material, 1);
import vs

# Sets the pen background color of the specified material.
material = vs.FSActLayer()  # handle to the first selected object on the active layer
color = 5

vs.SetMtlPenBackColor(material, color)

Version

Availability: from Vectorworks 2021

Category