Procedure Layer creates a new layer in a VectorWorks document. After creation, the new layer becomes the active layer of the document.
Layer can also be used to switch the active layer of the document. If the layer name passed to the procedure already exists, the procedure switches the active layer to the specified layer.
Single quotes should be avoided in layer names, as they will be treated as a mismatched string specifier, and will cause an error to be generated.
PROCEDURE Layer(name : STRING);def vs.Layer(name):
return None| Name | Type | Description |
|---|---|---|
| name | STRING | Name of new or existing layer. |
actLayerH := actLayer;
IF GetLayer (h) <> NIL THEN Layer (GetLName (GetLayer (h)));
{Layer (GetLName (GetLayer (h)));}
getArcProps (objH, method, r, theta1, theta2, maxSegLength, x, y);
{store the active Layer}
actLH := ActLayer;
{change the active Layer}
Layer( GetLName( GetLayer( textFoundH ) ) );
if layerOptions = 1 then BEGIN
SetLayerOptions(5);
temp_h := FLayer;
while temp_h <> nil do BEGIN
Layer(GetLName(temp_h));
ShowLayer;
temp_h := NextObj(temp_h);
END;if ( objectLayerName != '' ) and ( objectLayerName != activeLayerName ):
vs.Layer( objectLayerName )
bRestoreLayer = TrueSee also in tutorials: 07. Set Up Document Structure: Layers and Classes, 29. Cross-Layer Summary, 30. Publish Worksheet Image on a Sheet Layer
Availability: from All Versions