Arrows

This module provides support for the AutoCAD standard arrow heads used in DIMENSION, LEADER and MULTILEADER entities. Library user don’t have to use the ARROWS objects directly, but should know the arrow names stored in it as attributes. The arrow names should be accessed that way:

import ezdxf

arrow = ezdxf.ARROWS.closed_filled
ezdxf.render.arrows.ARROWS

Single instance of _Arrows to work with.

class ezdxf.render.arrows._Arrows

Management object for standard arrows.

__acad__

Set of AutoCAD standard arrow names.

__ezdxf__

Set of arrow names special to ezdxf.

architectural_tick
../_images/_ARCHTICK.png
closed_filled
../_images/_CLOSEDFILLED.png
dot
../_images/_DOT.png
dot_small
../_images/_DOTSMALL.png
dot_blank
../_images/_DOTBLANK.png
origin_indicator
../_images/_ORIGIN.png
origin_indicator_2
../_images/_ORIGIN2.png
open
../_images/_OPEN.png
right_angle
../_images/_OPEN90.png
open_30
../_images/_OPEN30.png
closed
../_images/_CLOSED.png
dot_smallblank
../_images/_SMALL.png
none
../_images/_NONE.png
oblique
../_images/_OBLIQUE.png
box_filled
../_images/_BOXFILLED.png
box
../_images/_BOXBLANK.png
closed_blank
../_images/_CLOSEDBLANK.png
datum_triangle_filled
../_images/_DATUMFILLED.png
datum_triangle
../_images/_DATUMBLANK.png
integral
../_images/_INTEGRAL.png
ez_arrow
../_images/EZ_ARROW.png
ez_arrow_blank
../_images/EZ_ARROW_BLANK.png
ez_arrow_filled
../_images/EZ_ARROW_FILLED.png
is_acad_arrow(item: str) bool

Returns True if item is a standard AutoCAD arrow.

is_ezdxf_arrow(item: str) bool

Returns True if item is a special ezdxf arrow.

insert_arrow(layout: GenericLayoutType, name: str, insert: Union[Sequence[float], Vec2, Vec3] = Vec3(0.0, 0.0, 0.0), size: float = 1.0, rotation: float = 0, *, dxfattribs=None) Vec2

Insert arrow as block reference into layout.

render_arrow(layout: GenericLayoutType, name: str, insert: Union[Sequence[float], Vec2, Vec3] = Vec3(0.0, 0.0, 0.0), size: float = 1.0, rotation: float = 0, *, dxfattribs=None) Vec2

Render arrow as basic DXF entities into layout.

virtual_entities(name: str, insert: Union[Sequence[float], Vec2, Vec3] = Vec3(0.0, 0.0, 0.0), size: float = 0.625, rotation: float = 0, *, dxfattribs=None) Iterator[DXFGraphic]

Returns all arrow components as virtual DXF entities.