Hi everyone.
I have copied a macro (that works perfectly) into an ilogic rule. The problem is that the ilogic rule ignores the paper size and scaling lines.
Any ideas?
SyntaxEditor Code Snippet
Dim oDrgDoc As DrawingDocument oDrgDoc = ThisApplication.ActiveDocument ' Set reference to drawing print manager' DrawingPrintManager has more options than PrintManager' as it's specific to drawing document Dim oDrgPrintMgr As DrawingPrintManager oDrgPrintMgr = oDrgDoc.PrintManager ' Set the printer name' comment this line to use default printer or assign another one oDrgPrintMgr.Printer = "\\printserv\HP LaserJet 5000 Series Win7 PS" 'Set the paper size , scale and orientation oDrgPrintMgr.ScaleMode = kPrintBestFitScale oDrgPrintMgr.PaperSize = kPaperSizeA3 oDrgPrintMgr.PrintRange = kPrintCurrentSheet oDrgPrintMgr.Orientation = kLandscapeOrientation 'oDrgPrintMgr.ColorMode = kPrintColorPalette'oDrgPrintMgr.ColorMode = kPrintGrayScale oDrgPrintMgr.AllColorsAsBlack = True oDrgPrintMgr.SubmitPrint
Solved! Go to Solution.
Solved by VdVeek. Go to Solution.
I posted something about iLogic Printing a while back here: http://forums.autodesk.com/t5/inventor-customization/print-with-ilogic/td-p/3688786/page/2
Use the PrintSizeEnum for your PaperSize. Maybe the Line scaling is something the same.
Rob.
oPrintMgr.PaperSize = PaperSizeEnum.kPaperSizeA3
Thanks Rob that works perfectly for the paper size.
I used this for the scaling:
oPrintMgr.Scalemode = kCustomScale oPrintMgr.ScaleMode = PrintScaleModeEnum.kPrintBestFitScale