Method PathFor
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
PathFor(string, CadPathType, string)
Gets the path to write for a file, as AutoCAD's Path type writes it: Full the full path; None the file's name; Relative
the way from the drawing's folder, .\grid.dxf beside it and ..\xref\grid.dxf up one, the full path
where the drawing has no folder yet (it is not saved) or the file is on another drive.
public static string PathFor(string fullPath, CadPathType type, string drawingFolder)
Parameters
fullPathstringThe full path of the file.
typeCadPathTypeHow the path is to be written.
drawingFolderstringThe folder of the drawing; null for a drawing not saved.
Returns
- string
The path.
Exceptions
- ArgumentNullException
Thrown when the path is null.