DrawingHandlerPrintDrawing Method (Drawing, DPMPrinterAttributes, String) |
Prints the drawing to file using the given printer attributes and name of the output file.
The given output file overrides the printer attributes file settings.
Namespace: Tekla.Structures.Drawing
Assembly: Tekla.Structures.Drawing (in Tekla.Structures.Drawing.dll) Version: 2025.0.0-alpha00045580+dc02c3918546f1e94eb2d3b13ea99057fb3313e0
public bool PrintDrawing( Drawing drawing, DPMPrinterAttributes printAttributes, string outputFile )
Parameters
- drawing
- Type: Tekla.Structures.DrawingDrawing
The drawing to be printed. - printAttributes
- Type: Tekla.Structures.DrawingDPMPrinterAttributes
The print attributes for the print job. - outputFile
- Type: SystemString
The print output file name.
Return Value
Type: BooleanTrue on success, false if printing fails.
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown if drawing or printerAttributes is null. |
If there is an active drawing visible in the drawing editor and it is a
different drawing to the specified drawing, the active drawing will be closed.