Printing to last used printer

Printing to last used printer
 1# This example shows how to print the active drawing
 2# by displaying the Print dialog with last user options
 3
 4# Create a local variable for the output toolbox
 5ot = impact.gui.output_toolbox
 6
 7# Clear the output toolbox
 8ot.clear()
 9
10drawing = impact.active_drawing
11
12if not drawing.isNone():
13    if drawing.print(None):
14        ot.add("Successfully printed active drawing")
15    else:
16        ot.add("Unable to print active drawing")
17else:
18    ot.add("No impact.active_drawing")