Hello
I'm looking to print plans on a plotter with Inventor but I don't understand how to set up the macro, I can print on a photocopier in A3 or A4 but not on an OCE plotter (Plotware 500)
Here is a snippet of the code I use that works for A3 and A4 (the "if" is because I check if the plan is portrait or landscape)
Dim oprintmgr As DrawingPrintManager
Set oprintmgr = ThisApplication.ActiveDocument.PrintManager
Set oDrawDoc = ThisApplication.ActiveDocument
With oDrawDoc.ActiveSheet
If (. Orientation = kLandscapePageOrientation) Then
'A2H printer setup
printingprinter = "\\811v\OCPW500_01"
oprintmgr. Printer = printingprinter
'oprintmgr. ColorMode = kPrintDefaultColorMode ' Set to default
oprintmgr. AllColorsAsBlack = False
oprintmgr. NumberOfCopies = 1 ' Set to print one copies.
oprintmgr. Orientation = kLandscapeOrientation ' Set to print using landscape orientation.
oprintmgr. PaperSize = kPaperSizeA2
oprintmgr. PaperSource = 3
oprintmgr. PaperHeight = 59.4
oprintmgr. PaperWidth = 42
oprintmgr. ScaleMode = kPrintBestFitScale
'oprintmgr. ScaleMode = kPrintCustomScale
'oprintmgr. [Scale] = 1
oprintmgr. ColorMode = kPrintGrayScale
oprintmgr. SubmitPrint ' Submit the print.
I think the problem comes from the OCE plotter config software but with autocad we have .pc3 files that work.
I would like to be able to print my plans in 1 click... yes I'm lazy:p
Thank you for your help!