Returns the line style of the specified class.
FUNCTION GetClLSN(className : STRING): LONGINT;def vs.GetClLSN(className):
return LONGINT| Name | Type | Description |
|---|---|---|
| className | STRING | Name of class. |
_c_ (2016.02.29): Returns a name list index, while the older routine GetClLS returned a dash style index.
indx := GetClLSN('None');
IF indx < 0 THEN { if the index is positive then is a pattern. Patterns are not named resources }
Message(Index2Name(-indx)); { returns the name of the dash style attached to the class 'None', if any }END;
IF (ok) & (linestyleDo) & (linestyleVa <> mT) THEN BEGIN
if not ObjectHasLS(h) then ok := false else BEGIN
IF IsLSByClass(h)
THEN num1 := GetClLSN(GetClass(h))
ELSE num1 := GetLSN(h);
num2 := Str2Num(linestyleVa);
ok := (ok) & (((linestyleOp = '=' ) & (num1 = num2)) |
((linestyleOp = '<' ) & (num1 < num2)) |
((linestyleOp = '>' ) & (num1 > num2)) |
SetLSN( h4, GetClLSN( kModifierClass ) );
SetLW( h4, GetClLW( kModifierClass ) );
IF GetClLSN (UserClassName) <> TmpClassInfo.LS THEN SetClLSN (UserClassName, TmpClassInfo.LS);import vs
# Returns the line style of the specified class.
className = 'None'
resultN = vs.GetClLSN(className)
vs.Message('GetClLSN returned: ' + str(resultN))VS Functions: SetClLSN
Availability: from Vectorworks 2013