Use VBA to plot idw to pdf

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've been looking into getting VBA to plot an idw to pdf automatically. From what I've found I can either have Adobe prompt for the save file location everytime, or never. Is there a way to have the file location specified within the macro code? There are two locations that I save pdf's and I'd like to have one macro save to one location, and another macro which saves to the second location. So it would be great if the file location was already specified by the marco. Currently I've been using the .SubmitPrint() method:
Public Sub PlotPDF()
If ThisApplication.ActiveDocument.DocumentType = kDrawingDocumentObject Then
Dim oDrgDoc As DrawingDocument
Set oDrgDoc = ThisApplication.ActiveDocument
' Set reference to drawing print manager
Dim oDrgPrintMgr As DrawingPrintManager
Set oDrgPrintMgr = oDrgDoc.PrintManager
' Set the printer name
oDrgPrintMgr.Printer = "Adobe PDF"
'Set the paper size , scale and orientation
oDrgPrintMgr.ScaleMode = kPrintBestFitScale
oDrgPrintMgr.PaperSize = kPaperSizeLetter
oDrgPrintMgr.PrintRange = kPrintAllSheets
oDrgPrintMgr.Orientation = kLandscapeOrientation
oDrgPrintMgr.AllColorsAsBlack = True
oDrgPrintMgr.SubmitPrint
End If
End Sub
============================
Any ideas?
Thanks!
-Andrew
Inventor 11 SP4