Table of Contents

Method SaveMlineStyleFile

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SaveMlineStyleFile(string, string)

Saves a style of multilines to a file of them, as the Save of AutoCAD's Multiline Style dialog writes acad.mln: the style opened by MLSTYLE, then its name (2) and its groups (70, 3, 62, 51, 52, 71, and each element's 49, 62 and 6), a code on one line and its value on the next after a space, the angles and offsets with fourteen decimals, and a group 0 after it; the styles the file has already are kept, one of the same name written over. A file that is not there is made. LoadMlineStyleFile(string, string) reads it back.

public void SaveMlineStyleFile(string mlineStyleName, string fileName)

Parameters

mlineStyleName string

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

fileName string

The path of the file of multiline styles.

Exceptions

ArgumentNullException

Thrown when the name or the path is null.

ArgumentException

Thrown when the drawing has no style of the name.

FormatException

Thrown when a file there already does not give a group code where it should.

IOException

Thrown when the file cannot be read or written.