DrawingHandlerPrintDrawings Method (IEnumerableDrawing, DPMPrinterAttributes, String) |
Prints the list of drawings using the given printer attributes.
Namespace: Tekla.Structures.Drawing
Assembly: Tekla.Structures.Drawing (in Tekla.Structures.Drawing.dll) Version: 2025.0.0-alpha00045580+dc02c3918546f1e94eb2d3b13ea99057fb3313e0
public bool PrintDrawings( IEnumerable<Drawing> drawings, DPMPrinterAttributes printAttributes, string OutputFolder )
Parameters
- drawings
- Type: System.Collections.GenericIEnumerableDrawing
The list of drawings to be printed. - printAttributes
- Type: Tekla.Structures.DrawingDPMPrinterAttributes
The print attributes for the print job. - OutputFolder
- Type: SystemString
The output folder as an absolute path or relateive to the model folder.
Return Value
Type: BooleanTrue on success, false if printing fails.
| Exception | Condition |
|---|---|
| ArgumentException | Thrown if PDF printing selected, but no file name provided. |
| ArgumentNullException | Thrown if drawings or printerAttributes is null. |
If there is an active drawing visible in the drawing editor and it is a
different drawing to the specified drawings, the active drawing will be closed.