Table of Contents

Class CadSupportFiles

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

The support files a drawing's linetypes (.lin) and hatch patterns (.pat) may be read from, looked for in this order: the folders the user gave in SupportFolders, then the Linetypes or Hatches folder beside OpenCAD2D.Core.dll and its subfolders (CadSupportFolders), then the presenter's own sets (BuiltIn, BuiltIn). The drawing's own folder is not looked in for them, and no file of AutoCAD's is looked for or preferred.

public static class CadSupportFiles
Inheritance
CadSupportFiles
Inherited Members

Properties

DefaultFolders

Gets the support folders a drawing starts with: none. The user adds a folder of their own in Global settings' Support file search folders; the folders beside the dll are looked in after them.

Methods

DefaultLinetypeFile(CadDocument)

Gets the linetype file a drawing loads from unless told otherwise: the presenter's own set (BuiltInName), whatever the drawing's units. A file of the user's is loaded only where the user names it.

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.

List(CadDocument, string)

Lists the files of support of an extension in the support folders and the folder beside the dll with its subfolders, each name once, the first that has it winning, in the order of the walk (CadSupportFolders): the user's folders in order, then the folder beside the dll, its own files by name first and then its subfolders.