Share

LeaderNode.InsertNode Method

Parent Object: LeaderNode

Description

Method that adds a LeaderNode at the specified position between two existing leader nodes. This is the equivalent of the 'Add Vertex' command in the user interface. This method does not apply for leaf nodes.

Syntax

LeaderNode.InsertNode( ChildNode As LeaderNode, Position As Point2d ) As LeaderNode

Parameters

Name Type Description
ChildNode LeaderNode LeaderNode object that specifies a child node of this node. The new node will be inserted between these two nodes. If the input node is not an immediate child, an error will occur.
Position Point2d Point2d object that specifies the position of the node to add. The method fails if the input position is not on the leader segment connecting the two leader nodes.

Samples

Name Description
Add new leader note This sample illustrates creating leader text on a sheet.

Version

Introduced in version 11

Was this information helpful?