VS:CreateLayer

From Vectorworks Developer
Revision as of 22:41, 11 July 2015 by CBM-c- (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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


Description

Creates a layer of the specified type.

layerType values: Design = 1 Presentation = 2

FUNCTION CreateLayer(
layerName  :STRING;
layerType  :INTEGER) : HANDLE;
def vs.CreateLayer(layerName, layerType):
    return HANDLE

Parameters

layerName STRING
layerType INTEGER

Remarks

(Orso, 2015.07.12):

The layer type constants can be fetched using GetObjectVariableInt(layerHandle, 154).

Version

Availability: from VectorWorks 10.5
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox