Table of Contents

Method Ensure

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

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.

public static DxfBlockTableRecord Ensure(DxfDatabase database, string name)

Parameters

database DxfDatabase

The drawing.

name string

The name of the arrowhead, as Names lists it, letters of either case the same.

Returns

DxfBlockTableRecord

The block, or null for Closed filled and for a name the drawing has no block of.

Exceptions

ArgumentNullException

Thrown when the drawing is null.