Table of Contents

Method GetDoglegLength

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

GetDoglegLength(int)

Gets how long a leader's dogleg is, as AutoCAD's GetDoglegLength: its length as drawn (group 40 of the leader, 1 where the leader gives none, as ezdxf reads one) over the Scale, as AutoCAD 2021 gives it, 8 for a dogleg drawn 16 at a scale of 2; nought for a leader that meets the words at their top or bottom, which has none.

public double GetDoglegLength(int leaderIndex)

Parameters

leaderIndex int

The index of the leader.

Returns

double

The length.

Exceptions

ArgumentOutOfRangeException

Thrown when the MULTILEADER has no leader of the index.