Skip to content

Latest commit

 

History

History
65 lines (51 loc) · 1.57 KB

File metadata and controls

65 lines (51 loc) · 1.57 KB

GetClLSN

Description

Returns the line style of the specified class.

FUNCTION GetClLSN(className : STRING): LONGINT;
def vs.GetClLSN(className):
    return LONGINT

Parameters

Name Type Description
className STRING Name of class.

Remarks

_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 }

Examples

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))

See Also

VS Functions: SetClLSN

Version

Availability: from Vectorworks 2013

Category