Table of Contents

Method Write

Namespace
OpenCAD2D.SheetSets
Assembly
OpenCAD2D.Core.dll

Write(IReadOnlyList<CadTransmittalFile>, string)

Writes the zip: each file that is ticked, in the order of its path in the zip, then transmittal.txt. A file in the folder of the .dst keeps its place and one outside it goes in Files; the .dst, the drawings and the paths in them are written again as the class says, and the fields of the drawings are updated first where UpdateFields is on. The zip is written beside its name first and put in its place once written, replacing a zip that is there; its folder is made where it is not.

public CadTransmittalResult Write(IReadOnlyList<CadTransmittalFile> files, string zipPath)

Parameters

files IReadOnlyList<CadTransmittalFile>

The files of Gather(IEnumerable<CadSheetComponent>), with the boxes ticked or not.

zipPath string

The path of the zip.

Returns

CadTransmittalResult

What was written.

Exceptions

ArgumentNullException

Thrown when the files or the path are null.

IOException

Thrown when a file cannot be read or the zip cannot be written.