Share

DrawingPrintManager Object

Derived from: PrintManager Object

Description

The DrawingPrintManager object supports properties and methods that allow you to get and set the printing parameters and submit the print.

Methods

Name Description
GetSheetRange Method that gets the sheet range to print. The sheet range is only used when the PrintRange property is set to kPrintSheetRange.
PrintToFile Method that prints to the specified file using the current property settings defined by the PrintManager object.
SetCurrentView Set the current view used for printing.
SetSheetRange Method that sets the sheet range to print. The range set is only used when the PrintRange property is set to kPrintSheetRange.
SubmitPrint Method that prints using the current property settings defined by the PrintManager object.

Properties

Name Description
AllColorsAsBlack Gets/Sets the Boolean flag indicating whether all the Drawing colors should be black in the print.
Application Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
ColorMode Gets/Sets the color mode to be used for printing. Defaults to using kPrintGrayScale.
NumberOfCopies Gets/Sets the number of copies to be printed. Defaults to 1.
Orientation Gets/Sets the orientation of the printer. Defaults to the printer's default.
PaperHeight Gets/Sets the height of the paper to be printed (max value is 327.67cm). Setting this, sets PaperSize to kPaperSizeCustom.
PaperSize Gets/Sets the size of the paper to be printed. Defaults to the printer's default.
PaperSource Gets/Sets the paper source (tray) on the printer. This is printer specific. Defaults to printer's default (denoted by -1).
PaperWidth Gets/Sets the width of the paper to be printed (max value is 327.67cm). Setting this, sets PaperSize to kPaperSizeCustom.
Printer Gets/Sets the name of the printer. This is the printer's identifier. Defaults to default printer for this machine.
PrinterDeviceContext Gets/Sets the printer's device context.
PrintExcludedSheets Gets/Sets the Boolean flag indicating whether excluded sheets (when PrintRange is set to kPrintAllSheets or kPrintSheetRange) should be printed. Defaults to FALSE.
PrintRange Gets/Sets information about which sheets are to be printed. Defaults to kPrintCurrentSheet.
RemoveLineWeights Gets/Sets the Boolean flag indicating whether the Drawing line weights should be removed in the print.
Rotate90Degrees Gets/Sets the Boolean flag indicating whether the Drawing should be rotated 90-deg in the print.
Scale Gets/Sets the scale of the print. Meaningless when the ScaleMode is not kPrintCustomScale.
ScaleMode Gets/Sets the mode by which the scale of the print is defined. Defaults to kPrintBestFitScale.
TilingEnabled Gets/Sets the Boolean flag indicating whether Tiling is enabled during print.
Type Returns an ObjectTypeEnum indicating this object's type.

Samples

Name Description
Printing - All Sheets in Drawing This sample demonstrates how to print all sheets in a drawing document and set some of the DrawingPrintManager properties.
Printing - Drawing Print This sample demonstrates how to print a drawing, setting specifics such as sheet range.

Version

Introduced in version 5

Was this information helpful?