VS:SetLayerLevelType

From Vectorworks Developer
Jump to: navigation, search

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


Description

Sets the Layer Level Type of a Layer. If the type passed in does not exist or if it already used by another Layer on the same Story, then the operation will fail.
FUNCTION SetLayerLevelType(
layer  :HANDLE;
layerLevelType  :STRING) : BOOLEAN;
def vs.SetLayerLevelType(layer, layerLevelType):
    return BOOLEAN

Parameters

layer HANDLE The Layer for which the Layer Level Type is being set.
layerLevelType STRING The Layer Level Type.

Return Value

Whether the attempt to set the Layer Level Type was successful.

Example

SetLayerLevelType(ActLayer, 'LT_SLAB');

Version

Availability: from Vectorworks 2012

See Also

VS Functions:

VS:GetLayerLevelType | VS:CreateLayerLevelType

VS Functions:

[[VS:GetLayerLevelType]]

| [[VS:CreateLayerLevelType]]
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox