Use GetLSN instead. Function GetLS returns the line style of the referenced object.
FUNCTION GetLS(h : HANDLE): INTEGER;def vs.GetLS(h):
return INTEGER| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to object. |
_c_ 2016.02.29: This is deprecated and returns always -1 as of VW 2016.
lStyleValue := GetLS(handleToObject);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))GetLSN from Vectorworks 2013
Availability: from All Versions, deprecated from Vectorworks 2013