Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Paper Sizes and Apprentice Server Problem

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
420 Views, 3 Replies

Paper Sizes and Apprentice Server Problem

I am having problems printing to drawing sizes other then A Size (Letter).

I have scanned through the messages in this Newsgroup and tried
everything that I have found, including making sure that I set the
properties in a specific order.

No matter what size I specify, the printer spits out the drawing on an A
Size piece of paper. Anybody have any suggestions?


Here is my code:

Private objApprenticeServerApp As New ApprenticeServerComponent

Private Sub PlotInventorDrawing(strDwgPath As String, strPlotSize As
String, strPlotter As String)

' Open a document.
Dim odoc As ApprenticeServerDocument
Set odoc = objApprenticeServerApp.Open(strDwgPath)
Dim oPrintMgr As ApprenticeDrawingPrintManager
Set oPrintMgr = odoc.PrintManager

' Set printer
oPrintMgr.Printer = strPlotter

' Set the paper size.
Select Case strPlotSize

Case "A"
oPrintMgr.PaperSize = kPaperSizeLetter

Case "B"
oPrintMgr.PaperSize = kPaperSize11x17

Case "C"
oPrintMgr.PaperSize = kPaperSizeCSheet

Case "D"
oPrintMgr.PaperSize = kPaperSizeDSheet

Case "E"
oPrintMgr.PaperSize = kPaperSizeESheet

End Select

' Set to print full scale.
oPrintMgr.ScaleMode = kPrintBestFitScale

' Set to print using portrait orientation.
oPrintMgr.Orientation = kLandscapeOrientation

' Set to print in color.
oPrintMgr.ColorMode = kPrintColorPalette

' Print
oPrintMgr.SubmitPrint

End Sub

Thanks,

Scott Maier
Programmer/Analyst
SPX Process Equipment - Lightnin
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

Hi Scott,

I haven't been able to reproduce the problem. I tried your code and it seems
to work fine for me. You might have to narrow down the problem some more (I
would start with taking out the line of code that sets the printer). What
Inventor version are you on?

Sanjay-


"Scott Maier" wrote in message
news:4852343@discussion.autodesk.com...
I am having problems printing to drawing sizes other then A Size (Letter).

I have scanned through the messages in this Newsgroup and tried
everything that I have found, including making sure that I set the
properties in a specific order.

No matter what size I specify, the printer spits out the drawing on an A
Size piece of paper. Anybody have any suggestions?


Here is my code:

Private objApprenticeServerApp As New ApprenticeServerComponent

Private Sub PlotInventorDrawing(strDwgPath As String, strPlotSize As
String, strPlotter As String)

' Open a document.
Dim odoc As ApprenticeServerDocument
Set odoc = objApprenticeServerApp.Open(strDwgPath)
Dim oPrintMgr As ApprenticeDrawingPrintManager
Set oPrintMgr = odoc.PrintManager

' Set printer
oPrintMgr.Printer = strPlotter

' Set the paper size.
Select Case strPlotSize

Case "A"
oPrintMgr.PaperSize = kPaperSizeLetter

Case "B"
oPrintMgr.PaperSize = kPaperSize11x17

Case "C"
oPrintMgr.PaperSize = kPaperSizeCSheet

Case "D"
oPrintMgr.PaperSize = kPaperSizeDSheet

Case "E"
oPrintMgr.PaperSize = kPaperSizeESheet

End Select

' Set to print full scale.
oPrintMgr.ScaleMode = kPrintBestFitScale

' Set to print using portrait orientation.
oPrintMgr.Orientation = kLandscapeOrientation

' Set to print in color.
oPrintMgr.ColorMode = kPrintColorPalette

' Print
oPrintMgr.SubmitPrint

End Sub

Thanks,

Scott Maier
Programmer/Analyst
SPX Process Equipment - Lightnin
Message 3 of 4
Anonymous
in reply to: Anonymous

If it's like the DWF writer, you must set the printer driver to the largest
possible size, then you can print everything that's smaller. I had a similar
problem when printing using the Autodesk DWF writer and found that no matter
what I told IV to print it would come out A size. Changing the DWF writer to
E size allowed me specify whatever size I wanted. It's worth a try ...

Joe
--

"Scott Maier" wrote in message
news:4852343@discussion.autodesk.com...
I am having problems printing to drawing sizes other then A Size (Letter).

I have scanned through the messages in this Newsgroup and tried
everything that I have found, including making sure that I set the
properties in a specific order.

No matter what size I specify, the printer spits out the drawing on an A
Size piece of paper. Anybody have any suggestions?


Here is my code:

Private objApprenticeServerApp As New ApprenticeServerComponent

Private Sub PlotInventorDrawing(strDwgPath As String, strPlotSize As
String, strPlotter As String)

' Open a document.
Dim odoc As ApprenticeServerDocument
Set odoc = objApprenticeServerApp.Open(strDwgPath)
Dim oPrintMgr As ApprenticeDrawingPrintManager
Set oPrintMgr = odoc.PrintManager

' Set printer
oPrintMgr.Printer = strPlotter

' Set the paper size.
Select Case strPlotSize

Case "A"
oPrintMgr.PaperSize = kPaperSizeLetter

Case "B"
oPrintMgr.PaperSize = kPaperSize11x17

Case "C"
oPrintMgr.PaperSize = kPaperSizeCSheet

Case "D"
oPrintMgr.PaperSize = kPaperSizeDSheet

Case "E"
oPrintMgr.PaperSize = kPaperSizeESheet

End Select

' Set to print full scale.
oPrintMgr.ScaleMode = kPrintBestFitScale

' Set to print using portrait orientation.
oPrintMgr.Orientation = kLandscapeOrientation

' Set to print in color.
oPrintMgr.ColorMode = kPrintColorPalette

' Print
oPrintMgr.SubmitPrint

End Sub

Thanks,

Scott Maier
Programmer/Analyst
SPX Process Equipment - Lightnin
Message 4 of 4
sellis
in reply to: Anonymous

Setting 11x17 paper size in printer defaults fixed a printing problem I was having wiht my VB.NET addin and a KONICA MINOLTA C364 printer.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report