VS:CreateLayer: Difference between revisions

From Vectorworks Developer
Jump to navigation Jump to search
m (1 revision)
 
(add constants to read)
(One intermediate revision by one other user not shown)
Line 39: Line 39:
</lineList>
</lineList>
</params>
</params>
-----------------------------------------------------------------------------------------------------------
<remark>
([[User:Orso.b.schmid|Orso]], 2015.07.12):
The layer type constants can be fetched using GetObjectVariableInt(layerHandle, 154).
</remark>


-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
<version>
<version>
Availability: from VectorWorks10.5
Availability: from VectorWorks 10.5


</version>
</version>

Revision as of 03:41, 12 July 2015

.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