AddLeader Method

Creates a leader line, given the coordinates of the points.

See Also | Example

Signature

RetVal = object.AddLeader(PointsArray, Annotation, Type)

Object

ModelSpace collection, PaperSpace collection, Block
The object or objects this method applies to.

PointsArray

Variant (array of doubles); input-only
The array of 3D WCS coordinates specifying the leader. You must provide at least two points to define the leader. The third point is optional.

Annotation

Object; input-only
A Tolerance, MText, BlockRef object or NULL.

Type

AcLeaderType enum; input-only

acAttributeModeLockPosition

acAttributeModeMultipleLine

acLineNoArrow

acLineWithArrow

acSplineNoArrow

acSplineWithArrow

RetVal

Leader object
The newly created Leader object.

Remarks

The leader is a line that connects some annotation to a feature in a drawing. Leaders and their annotation are associative, which means if you modify the annotation, the leader updates accordingly. The annotation can be a Tolerance, Mtext, or BlockRef object.

You can also create leaders that are not associated to a particular object. To do this, simply input a NULL object as the annotation.

 

   Comments?