API Reference

Detailed and full API reference helps you master Tekla development

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

Meta.Microsoft.Help.Id
M:Tekla.Structures.Drawing.DrawingHandler.PrintDrawings(System.Collections.Generic.List{Tekla.Structures.Drawing.Drawing},Tekla.Structures.Drawing.DPMPrinterAttributes)

DrawingHandlerPrintDrawings Method

Prints the list of drawings using the given printer attributes.

Namespace:  Tekla.Structures.Drawing
Assembly:  Tekla.Structures.Drawing (in Tekla.Structures.Drawing.dll) Version: 2019.1.0.0 (2019.1.0.0)
Syntax
public bool PrintDrawings(
	List<Drawing> drawings,
	DPMPrinterAttributes printAttributes
)

Parameters

drawings
Type: System.Collections.GenericListDrawing
The list of drawings to be printed.
printAttributes
Type: Tekla.Structures.DrawingDPMPrinterAttributes
The print attributes for the print job.

Return Value

Type: Boolean
True on success, false if printing fails.
Exceptions
Exception Condition
ArgumentException Thrown if PDF printing selected, but no file name provided.
See Also