PC-DMIS 2021.1 Object Library
Print Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
Option
Required Long or enumerated value that indicates the type of printing to occur. Options include Scale to Fit on Single Page, Print Visible Screen Area, Print Complete Views, and Print Complete View w/ Current Scale. Print Visible Screen Area is only available one of the views are zoomed. Print Complete Views is only available when multiple views exist.
DrawRulers
Required Boolean that indicates whether rulers should be included on the printout. This option is only available if rulers are currently turned on in the cad drawing.
PCDLRN ActiveX DLL > CadWindow Object : Print Method

Glossary Item Box

Description

Prints the CAD window.

Syntax

Visual Basic
Public Function Print( _
   ByVal Option As ENUM_CADPRINTOPTIONS, _
   ByVal DrawRulers As Boolean _
) As Boolean

Parameters

Option
ValueDescription
CADPRINT_ENTIRCURSCALEPrints the entire CAD view at the current scale.
CADPRINT_ENTIREVIEWPrints entire CAD view.
CADPRINT_ONEPAGESCALEPrints view scaled to fit on a single page.
CADPRINT_VISIBLEAREAPrints the visible screen area.
Required Long or enumerated value that indicates the type of printing to occur. Options include Scale to Fit on Single Page, Print Visible Screen Area, Print Complete Views, and Print Complete View w/ Current Scale. Print Visible Screen Area is only available one of the views are zoomed. Print Complete Views is only available when multiple views exist.
DrawRulers
Required Boolean that indicates whether rulers should be included on the printout. This option is only available if rulers are currently turned on in the cad drawing.

Return Type

Boolean value. Boolean returns true if the function succeeds, false if it fails.

See Also

Copyright © 2020. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.