Table of Contents

CadArrowheads

from OpenCAD2D import CadArrowheads

class CadArrowheads(System.Object) ยท CadArrowheads in the .NET reference

AutoCAD's arrowheads of dimensions and leaders: the names its Dimension Style Manager lists, the blocks it makes for them when a style or a leader first uses one (_ArchTick, _Dot), and their shapes, one unit long with the tip at the origin and the body towards -X, entity for entity as AutoCAD 2021 writes them.

Properties and fields

ClosedFilled

.NET

ClosedFilled: ClassVar[str]

The name of AutoCAD's own arrowhead, which needs no block.

Names

.NET

Names: ClassVar[System.Collections.Generic.IReadOnlyList[str]]

Gets the names of the arrowheads, in the order of AutoCAD's list: Closed filled, Closed blank, Closed, Dot, ... None.

Methods

Ensure

.NET

@staticmethod
def Ensure(database: DxfDatabase, name: str) -> DxfBlockTableRecord

Gets the block of an arrowhead in a drawing, made as AutoCAD makes it the first time a style or a leader uses it: _ArchTick for Architectural tick, its shape one unit long (CadArrowheads); null for Closed filled. A drawing that has the block, by a name of either case, keeps its own. A user arrow is the block of that name, where the drawing has it. Call it inside an edit of the document, as it may add a block.

NameOf

.NET

@staticmethod
def NameOf(block: DxfBlockTableRecord) -> str

Gets the name of the arrowhead a style's block draws: Closed filled for none, the block's own name for a user arrow.