Skip to content

Latest commit

 

History

History
67 lines (55 loc) · 1.63 KB

File metadata and controls

67 lines (55 loc) · 1.63 KB

SetClLW

Description

Sets the line weight of the specified class.

PROCEDURE SetClLW(
				className : STRING;
				LW        : INTEGER);
def vs.SetClLW(className, LW):
    return None

Parameters

Name Type Description
className STRING Name of class.
LW INTEGER Line weight value (in mils).

Remarks

Assigns the specified line style to the class named className.

Examples

VectorScript

SetClLW('To Be Demolished',28);

Python

GetWSCellValue (wksHand, row, col+2, tempInt);	{line weight}
SetClLW (userClassName, tempInt);

IF GetClLW (UserClassName) <> TmpClassInfo.LW THEN SetClLW (UserClassName, TmpClassInfo.LW);

BEGIN
	NameClass (UserClassName);
	SetClPenFore (UserClassName, DecimalToColorIndex(TmpClassInfo.PenColor));
	SetClLW (UserClassName, TmpClassInfo.LW);
	SetClLSN (UserClassName, TmpClassInfo.LS);
	SetClFPat (UserClassName, TmpClassInfo.FillPat);
	SetClFillFore (UserClassName, DecimalToColorIndex (TmpClassInfo.FillFore));
	SetClFillBack (UserClassName, DecimalToColorIndex (TmpClassInfo.FillBack));
vs.SetClPenFore( userClassName, r, g, b )
tempInt = vs.GetWSCellValue( wksHand, row, col + 2 )
# line weight
vs.SetClLW( userClassName, tempInt )
tempInt = vs.GetWSCellValue( wksHand, row, col + 3 )
# line style
vs.SetClLSN( userClassName, tempInt )
tempInt = vs.GetWSCellValue( wksHand, row, col + 4 )

See also in tutorials: 07. Set Up Document Structure: Layers and Classes

Version

Availability: from VectorWorks8.0

Category