Layer for MoxyDraw

Manipulates the layers.


Syntax to change a layer color:

Layer
color
layer name
color value

color:

Changes an existing layer color.

layer name:

Sets the target layer.

color value:

Sets the layer color. Color can be either an index number (from 1 to 255), its English name (black, blue, cyan, green, magenta, red, white or yellow) or an RGB color (ex: 101,135,77).





Syntax to erase a layer:

Layer
erase
layer name

erase:

Erases an existing layer even if it's in use. All objects on deleted layer will be layerless. The layer is not erased if it's current so set another layer current prior to erase the current layer.

layer name:

Sets the target layer.





Syntax to freeze a layer:

Layer
freeze
layer name

freeze:

Freezes an existing layer.

layer name:

Sets the target layer.





Syntax to change linetype:

Layer
linetype
layer name
linetype name

linetype:

Changes an existing layer linetype. Has to be typed in one word "linetype".

layer name:

Sets the target layer.

linetype:

Sets the linetype. See which linetypes are available in your AutoCAD installation.





Syntax to change lineweight:

Layer
lineweight
layer name
value

lineweight:

Changes an existing layer lineweight. Has to be typed in one word "lineweight".

layer name:

Sets the target layer.

value:

Sets the lineweight. Can be set to "default". See which lineweights are available in your AutoCAD installation.





Syntax to lock a layer:

Layer
lock
layer name

lock:

Locks an existing layer.

layer name:

Sets the target layer.





Syntax to create a layer:

Layer
new
layer name
color value
linetype
lineweight

new:

Creates a new layer and SETS it current.

layer name:

Sets the new layer name.

color value:

Optional. Sets the layer color. If omitted, it will be set to white. Color can be either an index number (from 1 to 255), its English name (black, blue, cyan, green, magenta, red, white or yellow) or an RGB color (ex: 101,135,77).

linetype:

Optional. Sets the linetype. See which linetypes are available in your AutoCAD installation. If omitted, it will be set to "continuous".

lineweight:

Optional. Sets the lineweight. Can be set to "default". See which lineweights are available in your AutoCAD installation. If omitted, it will be set to "default".

Note:

If the layer already exists, it will be set current without being modified.





Syntax make a layer notplottable:

Layer
notplottable
layer name

notplottable:

Makes an existing layer not plottable (can't be printed).

layer name:

Sets the target layer.





Syntax to turn a layer off:

Layer
off
layer name

off:

Turns an existing layer off (makes it invisible).

layer name:

Sets the target layer.





Syntax to turn a layer on:

Layer
on
layer name

on:

Turns an existing layer on.

layer name:

Sets the target layer.





Syntax make a layer plottable:

Layer
plottable
layer name

plottable:

Makes an existing layer plottable (can be printed).

layer name:

Sets the target layer.





Syntax to rename a layer:

Layer
rename
layer name
layer new name

rename:

Renames an existing layer.

layer name:

Sets the layer to rename.

layer new name:

Sets the new layer name.





Syntax to set a layer current:

Layer
set
layer name

set:

Sets an existing layer current.

layer name:

Sets the layer to be current.





Syntax to thaw a layer:

Layer
thaw
layer name

thaw:

Thaws (unfreeze) an existing layer.

layer name:

Sets the target layer.





Syntax to unlock a layer:

Layer
unlock
layer name

unlock:

Unlocks an existing layer.

layer name:

Sets the target layer.