Method AddMlineStyle
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
AddMlineStyle(string, DxfMlineStyleSettings)
Adds a style of multilines to the dictionary of multiline styles (MLStyleDictionary) under a name, as
AutoCAD adds one made by new MlineStyle() with its elements set: an MLINESTYLE written as AutoCAD writes one,
100 AcDbMlineStyle, its name in capitals (2: AutoCAD keeps ghLow as GHLOW), flags (70), description (3), fill (62), angles (51, 52 in degrees), count of
elements (71) and each element's offset (49), colour (62) and linetype (6), the elements from the greatest offset to
the least. A drawing with no dictionary of multiline styles is given one, ACAD_MLINESTYLE of its named object
dictionary.
public DxfMlineStyle AddMlineStyle(string name, DxfMlineStyleSettings settings)
Parameters
namestringThe name, letters of either case the same, with none of the characters AutoCAD refuses in a name.
settingsDxfMlineStyleSettingsWhat the style is made of.
Returns
- DxfMlineStyle
The style, in the dictionary.
Remarks
A style of three elements at 0.5, 0 and -0.5 in colours 1, 2 and 5, the first two by layer and the last by block, the start squared by a line and the end rounded by an arc, filled in colour 3 and with a line across each joint, has the flags 1 + 2 + 16 + 1024, 1043.
Exceptions
- ArgumentNullException
Thrown when the name or the settings are null.
- ArgumentException
Thrown when the name is not one AutoCAD takes, the dictionary has a style of it already, the settings are not ones AutoCAD takes, or an element is drawn with a linetype the drawing has not.
- InvalidOperationException
Thrown when the drawing has no named object dictionary, as one of R12.