Table of Contents

Method Map

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Map(IEnumerable<string>, string)

Map: maps layers of the drawing to a layer of the Translate To list; a layer mapped already is mapped again. Layer 0 and Defpoints are not mapped to another layer.

public int Map(IEnumerable<string> from, string to)

Parameters

from IEnumerable<string>

The names of the layers selected in the Translate From list.

to string

The name of the layer selected in the Translate To list.

Returns

int

How many were mapped; Message says why where none was.

Exceptions

ArgumentNullException

Thrown when the names or the layer are null.