Method Import
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Import(string)
Reads a file Export(string, IEnumerable<CadToolPalette>) (or Save(string)) wrote and adds its palettes after the last, their names made unique.
public IReadOnlyList<CadToolPalette> Import(string path)
Parameters
pathstringThe file.
Returns
- IReadOnlyList<CadToolPalette>
The palettes added, in order; the first is shown.
Exceptions
- ArgumentNullException
Thrown when the path is null.
- IOException
Thrown when the file cannot be read.
- UnauthorizedAccessException
Thrown when the file may not be read.
- FormatException
Thrown when the file is not a file of tool palettes.