Table of Contents

Method RenameMlineStyle

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

RenameMlineStyle(string, string)

Renames a style of multilines, as the Rename of AutoCAD's Multiline Style dialog does: its entry in the dictionary of multiline styles takes the name as given and its record (2) the name in capitals, and every multiline drawn by it, in any block, names it so (its handle, 340, is kept); the current style (CmlstyleID) stays current. A style WALLS renamed to Partitions is written PARTITIONS.

public void RenameMlineStyle(string oldName, string newName)

Parameters

oldName string

The name of the style, letters of either case the same.

newName string

The new name, one AutoCAD takes in a name.

Exceptions

ArgumentNullException

Thrown when either name is null.

ArgumentException

Thrown when the drawing has no style of the old name, the style is STANDARD, which AutoCAD does not rename, or the new name is not one AutoCAD takes or is another style's.