Method SetLeaderLineColor
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetLeaderLineColor(int, DxfColor)
Gives a leader line a colour of its own, as AutoCAD's SetLeaderLineColor: its group 92 written and bit 2 of its
flags (93) set, from R2010; Explode() draws the line in it. BYBLOCK sets the flag and writes no 92, as
AutoCAD 2021 writes it (check D38b). The colour the line is drawn in already is written and flagged all the same, as
AutoCAD 2021 flags it.
public void SetLeaderLineColor(int leaderLineIndex, DxfColor leaderLineTypeId)
Parameters
leaderLineIndexintThe index of the line.
leaderLineTypeIdDxfColorThe colour, as AutoCAD names the argument.
Exceptions
- ArgumentOutOfRangeException
Thrown when the MULTILEADER has no line of the index.
- ArgumentNullException
Thrown when the colour is null.
- ArgumentException
Thrown when the colour is by pen, or a layer's off or frozen.
- InvalidOperationException
Thrown in a file older than R2010 (AC1024), or when the MULTILEADER is erased.