Table of Contents

Method CountUses

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

CountUses(DxfDatabase, string)

Gets how many texts are written in a style: the TEXTs, MTEXTs and attribute definitions of model space, the layouts and the blocks, as AutoCAD counts what keeps a style from being deleted.

public static int CountUses(DxfDatabase database, string name)

Parameters

database DxfDatabase

The drawing.

name string

The style's name.

Returns

int

The number of texts.

Exceptions

ArgumentNullException

Thrown when the drawing is null.