Table of Contents

Class DxfMlineStyle

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

A style of multilines of a DXF file, as AutoCAD's MlineStyle: an MLINESTYLE of the dictionary of multiline styles (MLStyleDictionary), read from its record: its name, description, fill, caps, the angles of its ends and its elements, the lines it draws at their offsets.

public sealed class DxfMlineStyle : DxfDBObject
Inheritance
DxfMlineStyle
Inherited Members

Remarks

AutoCAD's style STANDARD is two elements 0.5 either side of the line drawn, by layer in colour and linetype, its ends square to it (90 degrees), not filled and with no caps: Elements of offsets 0.5 and -0.5, StartAngle and EndAngle pi / 2. A style is added from a file of styles by LoadMlineStyleFile(string, string) or made by AddMlineStyle(string, DxfMlineStyleSettings); its values are read here, and changed as a whole by Apply(DxfMlineStyleSettings).

Properties

Description

Gets the description of the style (group 3), as AutoCAD's Description; empty where it gives none.

Elements

Gets the elements of the style, as AutoCAD's Elements: each its offset from the line drawn (49), its colour (62) and its linetype (6), in the order of the record, a new list on each call.

EndAngle

Gets the angle of the multiline's end to its line (group 52, in degrees) in radians, as AutoCAD's EndAngle: pi / 2 square across.

EndInnerArcs

Gets whether arcs join the inner elements at the end (flag 512), as AutoCAD's EndInnerArcs.

EndRoundCap

Gets whether an arc joins the outer elements at the end (flag 1024), as AutoCAD's EndRoundCap.

EndSquareCap

Gets whether a line closes the end (flag 256), as AutoCAD's EndSquareCap.

FillColor

Gets the colour of the fill (group 62), as AutoCAD's FillColor: BYLAYER where the record gives none.

Filled

Gets whether the multiline is filled between its outer elements (flag 1 of group 70), as AutoCAD's Filled.

Name

Gets the name of the style (group 2), as AutoCAD's Name, such as STANDARD.

ShowMiters

Gets whether a line is drawn across each joint (flag 2), as AutoCAD's ShowMiters.

StartAngle

Gets the angle of the multiline's start to its line (group 51, in degrees) in radians, as AutoCAD's StartAngle: pi / 2 square across.

StartInnerArcs

Gets whether arcs join the inner elements at the start (flag 32), as AutoCAD's StartInnerArcs.

StartRoundCap

Gets whether an arc joins the outer elements at the start (flag 64), as AutoCAD's StartRoundCap.

StartSquareCap

Gets whether a line closes the start (flag 16), as AutoCAD's StartSquareCap.

Methods

Apply(DxfMlineStyleSettings)

Gives the style the settings, as AutoCAD sets the values of an MlineStyle before it is added: its record written anew from them, its name and handle kept, the elements from the greatest offset to the least. A multiline already drawn by the style takes the new elements when its record is built anew (DxfMlineBuilder); AutoCAD's MLSTYLE refuses to change the elements of a style a multiline is drawn by.

GetSettings()

Gets what the style is made of as a DxfMlineStyleSettings, to change some of it and give it back to Apply(DxfMlineStyleSettings), or to make a style like it with AddMlineStyle(string, DxfMlineStyleSettings); a new object on each call.

ToString()

Gives the style as a line for debugging: its type, its handle and its name.