Table of Contents

Method GetOverridedMLeaderStyle

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

GetOverridedMLeaderStyle(DxfMLeaderStyle)

Gives a style made in code the values the multileader is drawn with, as AutoCAD's getOverridedMLeaderStyle, named here as the library names its members: those of its multileader style (MLeaderStyle), and in place of each it overrides (a bit of its 90) its own, as ezdxf's MLeaderStyleOverride reads them. A multileader of the style Standard, its words 2.5 high of its own, gives TextHeight 2.5 and the style's arrows, 4 long. An override is the value the multileader's group gives, the style's kept where the multileader has no group of it, but for the arrows: a multileader of AutoCAD's closed filled arrow gives a style of no arrow block. Each is read as the multileader writes it, as MLeaderStyleOverride reads it: the height of the words (bit 16) and the landing gap (bit 5) from the context data, scaled (its 41 and 145, as drawn, which TextHeight and LandingGap read over the scale); the size of the arrows (bit 9) from the multileader's own 42, unscaled, as the style holds it; the length of the doglegs (bit 7) from its own 41, unscaled too, as AutoCAD 2021 writes it. A multileader of scale 2 with words 8 high, arrows 4 and doglegs 8 of its own, drawn 16, gives a style of words 8 high, arrows 4 and doglegs 8, whose scale is the multileader's 2 where it overrides that too (bit 24).

public void GetOverridedMLeaderStyle(DxfMLeaderStyle mleaderStyle)

Parameters

mleaderStyle DxfMLeaderStyle

The style, made in code by new DxfMLeaderStyle(); given these values in place of any it had.

Exceptions

ArgumentNullException

Thrown when the style is null.

ArgumentException

Thrown when the style is one of a drawing, whose record is not written.

InvalidOperationException

Thrown when the multileader names no multileader style of its drawing, or is in none.