Method IsInUse
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
IsInUse(DxfDatabase, string)
Gets whether something of the drawing draws with a linetype, so that it may not be deleted: ByLayer, ByBlock and Continuous always, as AutoCAD keeps them, and any other an entity, a layer, a style or the header names, as the library's purge finds it.
public static bool IsInUse(DxfDatabase database, string name)
Parameters
databaseDxfDatabaseThe drawing.
namestringThe linetype's name.
Returns
- bool
True where it is kept; false for one nothing uses, or one the drawing has not.
Exceptions
- ArgumentNullException
Thrown when the drawing or the name is null.