Table of Contents

Method AddLeaderLine

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

AddLeaderLine(int)

Adds a leader line of no vertices to a leader, as AutoCAD's AddLeaderLine of a leader: its index (91) one above every line's, of no colour of its own (no 92), drawn in LeaderLineColor, as AutoCAD 2021 writes one (check D38). Its arrow goes at a vertex put in by AddFirstVertex(int, GeoPoint3).

public int AddLeaderLine(int leaderIndex)

Parameters

leaderIndex int

The index of the leader.

Returns

int

The index of the line.

Exceptions

ArgumentOutOfRangeException

Thrown when the MULTILEADER has no leader of the index.

InvalidOperationException

Thrown when the MULTILEADER is erased.

AddLeaderLine(GeoPoint3)

Adds a leader line from a point, as AutoCAD's AddLeaderLine of a point: the point its first vertex, where its arrow is, the line added to the first leader whose dogleg runs from the point's side towards the content. Where none does and the point is on the left of words held at their top left and met on their sides, along the plane, the line is added to a new leader landed as AutoCAD 2021 lands it: its dogleg along the x axis of the plane, as long as DoglegLength times the Scale, ending the LandingGap short of the words' left edge, as far below their top as the attachment of the left side (TextAttachmentType) says: nought at the top of the top line, half the height of the words at its middle, all of it at its bottom and a fifth more under it; the middle of the words, the middle of the bottom line, its bottom and a fifth more under it as the lines of the words stand, each 5/3 of their height times their spacing below the one above, the lines counted by their breaks (\P), as words that do not wrap. Words "ABC" 4 high held at (100, 50, 0), met at the middle of their top line with a gap of 2 and a dogleg of 8, are met by a leader from (0, 0, 0) whose dogleg runs from (90, 48, 0) to (98, 48, 0); three lines met at their middle, from (90, 41.33, 0). A block is met on the side of its box the point is on (its middle along x), with no gap, its dogleg ending where the block's shapes meet the line along x through the middle of its box (connected at its extents) or through its position (at its base), the outermost such point on that side, else that point of the line; the box is the block's own, of the shapes the library reads, carried as the block is drawn and boxed in the plane: the box of lines from (-10, -5) to (20, 15) placed at (100, 50, 0) is met from (0, 0, 0) by a dogleg from (82, 55, 0) to (90, 55, 0), and from (250, 0, 0) by one from (128, 55, 0) to (120, 55, 0). Elsewhere, the line goes to the first leader, one made at the base point of the content where there is none, its dogleg ending there for a point on its left, as AutoCAD 2021 lands a leader it adds (check D38b), and starting there for one on its right: on the right of the words, which AutoCAD lands as far right as its font makes them wide; for words turned off the plane, held at their top centre or right where no font measures them, or met at their top or bottom. A MULTILEADER of no content has its first line landed at the point, its dogleg towards the base point, the line of that one vertex, as AutoCAD 2021 lands it (check D38b): from (30, 40, 0), a dogleg from there along -x; a line after it goes to that leader. Words held at their top centre or right are met from their edges where the fonts measure them (check D38b). Where the drawing's FontSearchPath measures the words (one line in an SHX or TrueType font), a point at their middle or right of it is met on their right, as AutoCAD 2021 lands it (check F1b): the dogleg against x, ending the gap past their ink, "ABC" of txt.shx 4 high at (100, 50, 0), 10.67 wide, met from (250, 0, 0) by a dogleg from (120.67, 48, 0) to (112.67, 48, 0), and from (108, 0, 0) too, while (103, 0, 0) is met on the left; words whose ink reaches below their baseline are as high as their height and that depth together, "Ag" met 2.67 below its top at the middle of its top line. A leader of no landing yet (AddLeader()) is passed over, as AutoCAD 2021 passes it. Words a leader meets on a side of attachment 8 are underlined (SetTextAttachmentType(DxfTextAttachmentType, DxfLeaderDirectionType)). Words mirrored across their plane, which run against its x axis (294 of 1), held at their right, are met as AutoCAD 2021 meets them where the fonts measure them (check D38): "ABC" of txt.shx held at (110.67, 50, 0) facing down, met from (250, 100, 0) by a dogleg from (120.67, 48, 0). The line has no colour of its own (no 92), as AutoCAD 2021 writes one.

public int AddLeaderLine(GeoPoint3 point)

Parameters

point GeoPoint3

The point, in the world.

Returns

int

The index of the line.

Exceptions

ArgumentException

Thrown when a coordinate is not a finite number.

InvalidOperationException

Thrown when the MULTILEADER is erased.