Method Read
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Read(string)
Reads a .lin file: UTF-8 where its bytes are, else each byte its own character, as AutoCAD's own files are written in the code page of Windows.
public static IReadOnlyList<CadLinetypeDefinition> Read(string path)
Parameters
pathstringThe path.
Returns
- IReadOnlyList<CadLinetypeDefinition>
The linetypes.
Exceptions
- ArgumentNullException
Thrown when the path is null.
- IOException
Thrown when the file cannot be read.