Table of Contents

Method Find

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Find(CadDocument, string)

Finds a file of support: the path as written where it is a full path that is there, else its name in the document's support folders in order and then, for a .lin or .pat file, in the Linetypes or Hatches folder beside the dll and its subfolders; null where none has it.

public static string Find(CadDocument document, string fileName)

Parameters

document CadDocument

The document.

fileName string

The file's name or path, as mine.lin.

Returns

string

The full path, or null.

Exceptions

ArgumentNullException

Thrown when the document is null.