Table of Contents

Method SetFromStyle

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetFromStyle()

Takes away the leader's overrides of its dimension style, as AutoCAD's SetFromStyle: the list DSTYLE of its extended data of ACAD, the rest of that data kept, and the data of ACAD with it where nothing else is left; each variable then reads as its style has it, a leader of Dimasz 3.5 over the style Standard reading 2.5. A leader of no overrides changes nothing; the colour it writes for DIMCLRD BYBLOCK (77) is its own, not an override, and stays.

public override bool SetFromStyle()

Returns

bool

Whether the leader's drawing (for a copy in no file, the drawing it was copied from) has the dimension style it names (DimensionStyleName); false, and nothing changed, where it has not, or the leader is in none.

Exceptions

InvalidOperationException

Thrown when the leader has overrides and is erased.