Table of Contents

Method NewLayer

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

NewLayer(CadTranslateLayer)

New…: adds a layer to the Translate To list, to map layers to and make in the drawing where it has none of the name.

public bool NewLayer(CadTranslateLayer layer)

Parameters

layer CadTranslateLayer

The layer, with the settings it is to have.

Returns

bool

Whether it was added; Message says why not: a name AutoCAD refuses, or one the list has.

Exceptions

ArgumentNullException

Thrown when the layer is null.