Table of Contents

Method CountUses

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

CountUses(DxfDatabase, string)

Gets how many tables are written in a style: the tables of model space, the layouts and the blocks that name it, 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 tables.

Exceptions

ArgumentNullException

Thrown when the drawing is null.