CadTransmittal
from OpenCAD2D.SheetSets import CadTransmittal
class CadTransmittal(System.Object) ยท CadTransmittal in the .NET reference
eTransmit of a sheet set (A12 D18): gathers what a set needs to be opened somewhere else, one zip of the set's data file, the drawings of its sheets, the files those drawings reference (external references, images, PDF underlays, the files of data links), the sheet creation templates and the page setup overrides file, the plot style tables the layouts of the sheets name, and the font files the text styles name that sit beside the drawings or in the support folders, with a report, transmittal.txt. It is AutoCAD's Create Transmittal with its Use organized folder structure and a package of the zip type, and nothing of its other types, setups or paths.
Constructors
__init__
def __init__(
self,
file: CadSheetSetFile,
plotStyleFolder: str,
fontFolders: System.Collections.Generic.IEnumerable[str],
) -> None
Makes the transmittal of a sheet set.
Properties and fields
DefaultZipPath
@property
def DefaultZipPath(self) -> str
Gets the zip the dialog offers: Transmittals\<set name>.zip in the folder of the .dst, the name with each character a file cannot hold made an underscore.
Notes
@property
def Notes(self) -> str
@Notes.setter
def Notes(self, value: str | None) -> None
Gets or sets the notes that go in the report, what the box of the dialog holds; empty for none.
SheetSetFile
@property
def SheetSetFile(self) -> CadSheetSetFile
Gets the sheet set's file.
UpdateFields
@property
def UpdateFields(self) -> bool
@UpdateFields.setter
def UpdateFields(self, value: bool) -> None
Gets or sets whether the fields of the drawings are updated in the copies before they are zipped; true until set. A drawing with fields is opened and saved again for it, and each field is evaluated as that drawing's FIELDEVAL asks (bit 8 for eTransmit, and the bits for opening and saving that the program's own open and save use).
Methods
Gather
def Gather(
self,
selection: System.Collections.Generic.IEnumerable[CadSheetComponent],
) -> System.Collections.Generic.IReadOnlyList[CadTransmittalFile]
Lists the files the sheets under a selection need, the .dst and the set's templates and overrides file among them. A drawing is read once, however often a list is asked for. A sheet with no layout sends nothing; a sheet whose drawing is not found is listed by that drawing's path, not found.
Report
def Report(self, files: System.Collections.Generic.IReadOnlyList[CadTransmittalFile], zipPath: str) -> str
Makes the report as it would be written now: the sheet set, the package, the notes, the sheets, the files that go, those left out and those not found, and the paths that are to be written again. The fields updated are not known until the zip is written.
Write
def Write(
self,
files: System.Collections.Generic.IReadOnlyList[CadTransmittalFile],
zipPath: str,
) -> CadTransmittalResult
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 CadTransmittal.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.