Table of Contents

Method Rename

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Rename(CadDocument, string, string)

Renames a linetype with everything drawn with it, as -RENAME LType does: the entities, the layers, the styles of multilines and the current linetype name it. Refused for ByLayer, ByBlock and Continuous, which AutoCAD keeps, and for a linetype of an external reference, Cannot rename linetype "X".; for a name AutoCAD does not take, Invalid linetype name.; and for the name of another linetype, letters of either case the same, Linetype "X" already exists.

public static CadEditResult Rename(CadDocument document, string name, string newName)

Parameters

document CadDocument

The document.

name string

The linetype's name, letters of either case the same.

newName string

The new name.

Returns

CadEditResult

What came of it; the name it has already is done with nothing written.

Exceptions

ArgumentNullException

Thrown when the document is null.