Leader.AddLeader Method

Parent Object: Leader

Description

Method that adds a leader branch with the input points. This is the equivalent of the 'Add Leader' command in the user interface. This method will succeed only if the HasRootNode property returns False (i.e. there are no existing leader segments). If there are existing leader segments, this method will fail you should use the LeaderNode.AddLeader method instead.

Syntax

Leader.AddLeader( Points As ObjectCollection )

Parameters

Name Type Description
Points ObjectCollection ObjectCollection containing a series of Point2d objects representing a leader branch originating at the drawing annotation or symbol. The first point indicates the position of the root node. The last item in the collection can be a GeometryIntent object indicating a geometry to attach the leader branch to. The ObjectCollection must contain at least two items, else the method will fail.

Version

Introduced in version 11