Leaders

autocad_entity: autocad_leader

Features with autocad_entity set to autocad_leader are linear features that identify where to place an AutoCAD leader entity.

When performing AutoCAD-to-AutoCAD translations, the writer will attempt to reconnect an AutoCAD leader entity with an associated annotation entity. The annotation entity must be either an mtext or a block insert.

Note: For AutoCAD-to-AutoCAD translations, it is recommended that you set Explode Blocks into Entities and Explode MText Entities to No.

The reader returns the following leader-specific attributes.

Attribute Name

Contents

autocad_path_type

The type of path the leader follows. The path for a leader is one of autocad_straight_leader in which case the leader is a straight line, or autocad_spline_leader in which case the leader is a spline.

autocad_arrow_head_on

This specifies if the leader line has an arrowhead on it.

Range: True | False

Default: True

autocad_hook_line_on_xdir

(used by the reader only)

This is True if the hook line is in the same direction as the x direction and False if it is not.

Range: True | False

autocad_has_hook_line

(used by the reader only)

This is True if the leader has a hook line, and False if it does not.

Range: True | False

autocad_anno_type

The type of annotation of the leader. This attribute is required by the writer if this leader is associated with an annotation entity and the association should be preserved.

Range:

autocad_anno_text – annotation is mtext entity,

autocad_anno_tolerance – annotation is a tolerance entity,

autocad_anno_block – annotation is a block insert, and

autocad_anno_none – no annotation with leader.

Default: autocad_anno_none

autocad_anno_handle

The handle of the annotation entity with which this leader is associated.

This attribute is required by the writer if this leader is associated with an annotation entity and the association should be preserved.

Range: Char[50]

autocad_anno_height

(used by the reader only)

The height of the associated mtext entity.

Range: 64-bit floating point number

autocad_anno_width

(used by the reader only)

The width of the associated mtext entity.

Range: 64-bit floating point number

autocad_txt_offset_x

The offset of the last leader vertex from the annotation placement point.

Range: 64-bit floating point number

autocad_txt_offset_y

The offset of the last leader vertex from the annotation placement point.

Range: 64-bit floating point number

autocad_txt_offset_z

The offset of the last leader vertex from the annotation placement point.

Range: 64-bit floating point number

autocad_x_dir_x

(used by the reader only)

The x component of a vector indicating the horizontal direction of the text.

Range: 64-bit floating point number

autocad_x_dir_y

(used by the reader only)

The y component of a vector indicating the horizontal direction of the text.

Range: 64-bit floating point number

autocad_x_dir_z

(used by the reader only)

The z component of a vector indicating the horizontal direction of the text.

Range: 64-bit floating point number