Difference between revisions of "VS:GetClLSN"

From Vectorworks Developer
Jump to: navigation, search
(add example and remark)
(correction)
Line 37: Line 37:
 
<code lang="vs">
 
<code lang="vs">
 
indx := GetClLSN('None');
 
indx := GetClLSN('None');
IF indx < 0 THEN { if the index is positive then is pattern and they are not named resources }
+
IF indx < 0 THEN { if the index is positive then is a pattern. Patterns are not named resources }
Messag(Index2Name(-GetClLSN('None'))); { returns the name of the dash style attached to the class 'None', if any }
+
Message(Index2Name(-GetClLSN('None'))); { returns the name of the dash style attached to the class 'None', if any }
 
</code>
 
</code>
 
</remark>
 
</remark>

Revision as of 14:36, 1 March 2016

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix


Description

Returns the line style of the specified class.
FUNCTION GetClLSN(
className  :STRING) : LONGINT;
def vs.GetClLSN(className):
    return LONGINT

Parameters

className STRING Name of class.

Remarks

(Orso 2016.02.29): Returns a name list index, while the older routine VS: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(-GetClLSN('None'))); { returns the name of the dash style attached to the class 'None', if any }

Version

Availability: from Vectorworks 2013

See Also

VS Functions:

VS:SetClLSN

VS Functions: [[VS:SetClLSN]]
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox