Table of Contents

Method From

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

From(DxfDatabase, string)

Shows a database already in memory. One that writes no handles, as a drawing of R12 written by hand, is shown as a copy read anew with a handle for each entity, as AutoCAD gives them on opening it; Database is then that copy.

public static CadDocument From(DxfDatabase database, string name = null)

Parameters

database DxfDatabase

The database.

name string

A name to show for it; null for none.

Returns

CadDocument

The document.

Exceptions

ArgumentNullException

Thrown when the database is null.