Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 1.13 KB

File metadata and controls

59 lines (46 loc) · 1.13 KB

GetClLW

Description

Returns the line weight of the specified class.

FUNCTION GetClLW(className : STRING): INTEGER;
def vs.GetClLW(className):
    return INTEGER

Parameters

Name Type Description
className STRING Name of class.

Remarks

Returns the line weight of the class named className.

Examples

VectorScript

pbLineWt:= GetClLW('Property Bounds');

Python

pbLineWt = vs.GetClLW('Property Bounds')
SetLSN( h4, GetClLSN( kModifierClass ) );
SetLW( h4, GetClLW( kModifierClass ) );

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

IF GetClLW (UserClassName) <> TmpClassInfo.LW THEN
BEGIN
	gClassList [classIndex].LW := GetClLW (UserClassName);
	WriteToClassWS (classIndex, 2, GetClLW (UserClassName), '');
END;
import vs

# Returns the line weight of the specified class.
className = 'None'

resultN = vs.GetClLW(className)
vs.Message('GetClLW returned: ' + str(resultN))

Version

Availability: from VectorWorks8.0

Category