Skip to content

Latest commit

 

History

History
54 lines (42 loc) · 1.01 KB

File metadata and controls

54 lines (42 loc) · 1.01 KB

GetLS

Description

Use GetLSN instead. Function GetLS returns the line style of the referenced object.

FUNCTION GetLS(h : HANDLE): INTEGER;
def vs.GetLS(h):
    return INTEGER

Parameters

Name Type Description
h HANDLE Handle to object.

Remarks

_c_ 2016.02.29: This is deprecated and returns always -1 as of VW 2016.

Examples

VectorScript

lStyleValue := GetLS(handleToObject);

Python

lStyleValue = vs.GetLS(handleToObject)
resultN := GetLS(h);
import vs

# _ Function GetLS returns the line style of the referenced object.
h = vs.FSActLayer()  # handle to the first selected object on the active layer

resultN = vs.GetLS(h)
vs.Message('GetLS returned: ' + str(resultN))

See Also

GetLSN from Vectorworks 2013

Version

Availability: from All Versions, deprecated from Vectorworks 2013

Category