Method Load
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Load(CadDocument, IEnumerable<CadLinetypeDefinition>, string, string)
Loads linetypes into a document as one undo step, named as given: each of a file on disk through the library's loader, each of BuiltInName from its definition; one the drawing has already passed over, one the drawing cannot take (its text style or shape missing) refused alone, the others loaded. DASHED of the presenter's own set loaded into a new drawing is an LTYPE of a dash 12.7 and a gap 6.35, 19.05 long. A linetype of BuiltIn itself is written from its definition whatever the path, so that the Load dialog's list, the presenter's own set followed by a file's, loads in one step.
public static CadLinetypeLoad Load(CadDocument document, IEnumerable<CadLinetypeDefinition> linetypes, string path, string stepName = "LINETYPE")
Parameters
documentCadDocumentThe document.
linetypesIEnumerable<CadLinetypeDefinition>The linetypes, as read from the file.
pathstringThe file they were read from: a full path, or BuiltInName.
stepNamestringThe name of the undo step, as LINETYPE.
Returns
- CadLinetypeLoad
What came of it.
Exceptions
- ArgumentNullException
Thrown when the document, the linetypes or the path is null.