Method AddLeader
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
AddLeader()
Adds a leader of no lines, as AutoCAD's AddLeader: its index (90) one above every leader's, its dogleg along the
x axis of the plane, as long as DoglegLength times the Scale, written as ezdxf writes a
leader, and of no landing yet (290 of nought), as AutoCAD 2021 writes it: it draws no dogleg, a line added to it has
no vertex, and the first vertex given a line of it (AddFirstVertex(int, GeoPoint3) or AddLastVertex(int, GeoPoint3))
becomes its landing, the content left where it is, unless SetDogleg(int, GeoVector3) lands it first. Words at
(100, 50, 0) given a leader whose line is given (-20, 80, 0) are met there, the line of one vertex, its dogleg drawn
from (-20, 80, 0) to (-12, 80, 0).
public int AddLeader()
Returns
- int
The index of the leader.
Exceptions
- InvalidOperationException
Thrown when the MULTILEADER is erased.