Method SetDogleg
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetDogleg(int, GeoVector3)
Gives a leader's dogleg its direction, as AutoCAD's SetDogleg. A leader of no landing yet (AddLeader()),
or one whose dogleg is turned to another direction, is landed on the side of the content its dogleg now runs from,
where the library can tell where it meets the content, as AutoCAD 2021 lands it: along x on the left of the words, on
either side of a block; on the right of the words, which AutoCAD lands by their font's width, it keeps its point, but
where the drawing's FontSearchPath measures them, where it is landed as far right as they are
wide. The
box of lines from (-10, -5) to (20, 15) at (100, 50, 0) is met against x from (128, 55, 0), where a leader just added
lands, and where its leader from the left lands once turned; a vertex then given a line of it goes before the landing.
public void SetDogleg(int leaderIndex, GeoVector3 vector)
Parameters
leaderIndexintThe index of the leader.
vectorGeoVector3The direction, in the world.
Exceptions
- ArgumentOutOfRangeException
Thrown when the MULTILEADER has no leader of the index.
- ArgumentException
Thrown when the direction has no length or is not finite.
- InvalidOperationException
Thrown when the MULTILEADER is erased.