Skip to content

Latest commit

 

History

History
59 lines (49 loc) · 1.47 KB

File metadata and controls

59 lines (49 loc) · 1.47 KB

SetClLSN

Description

Sets the line style of the specified class.

PROCEDURE SetClLSN(
				className : STRING;
				lineStyle : LONGINT);
def vs.SetClLSN(className, lineStyle):
    return None

Parameters

Name Type Description
className STRING Name of class.
lineStyle LONGINT Line style index value.

Examples

GetWSCellValue (wksHand, row, col+3, tempLong);	{line style}
SetClLSN (userClassName, tempLong);

IF GetClLSN (UserClassName) <> TmpClassInfo.LS THEN SetClLSN (UserClassName, TmpClassInfo.LS);

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));
	SetClUseGraphic (UserClassName, TmpClassInfo.UseAtCreation);
vs.SetClLW( userClassName, tempInt )
tempInt = vs.GetWSCellValue( wksHand, row, col + 3 )
# line style
vs.SetClLSN( userClassName, tempInt )
tempInt = vs.GetWSCellValue( wksHand, row, col + 4 )
# fill pattern
vs.SetClFPat( userClassName, tempInt )
tempInt = vs.GetWSCellValue( wksHand, row, col + 5 )

See Also

VS Functions: GetClLSN

Version

Availability: from Vectorworks 2013

Category