Table of Contents

Class CadArrowheads

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

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.

public static class CadArrowheads
Inheritance
CadArrowheads
Inherited Members

Remarks

Closed filled has no block: a style names none for it. Each other block holds what AutoCAD 2021 puts in it, on layer 0, colour and linetype ByBlock, its lines, circles and arcs of lineweight ByBlock: Closed is the three sides of a triangle one long and a third wide with a line down its middle; Dot a polyline of two half circles 0.5 wide about the tip, which fills a disc of radius 0.5, and a line from -0.5 to -1; Architectural tick a polyline 0.15 wide from (-0.5, -0.5) to (0.5, 0.5). A dimension's picture and the presenter draw an arrowhead from the same shapes, placed at its tip and scaled by its size.

A style that names a block of another name (a user arrow) is listed under that name and drawn closed filled in a dimension's picture.

Fields

ClosedFilled

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

Properties

Names

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

Methods

Ensure(DxfDatabase, string)

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(DxfBlockTableRecord)

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