%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
layer Method
See Also  Example
vdWebLibrary Namespace > ScriptCommands Class : layer Method
name
The name of an existing layer
Set the passed layer name as active. Commands that create new objects like line add the created entities to that layer.

Syntax

JScript 
public function layer( 
   name : String
);

Parameters

name
The name of an existing layer

Example

C#Copy Code
vdrawobj.scriptCommand.layer("walls"); 
vdrawobj.scriptCommand.line();//all the user lines will be added to document and will have the layer 'walls' as reference layer.

Remarks

If the passed name does not exist in the GetLayers then does nothing.

See Also