iLogic printing code tweak from D size to B size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
We found a script that will print our drawings in a convenient way to PDF, however, we use D size for the detail and print on B size 11"x17". When we send the drawing to the shop, they're having trouble scaling down each print because the iLogic saves the Sheet Size as 34"x22". Below is the script, is there a way we can tweak this script in order to scale the PDF's, regardless of actual sheet size, to 11"x17"?
Dim PDFAddIn As TranslatorAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}") Dim oDoc As Document = ThisApplication.ActiveDocument Dim oContext As TranslationContext = ThisApplication.TransientObjects.CreateTranslationContext oContext.Type = kFileBrowseIOMechanism Dim oOptions As NameValueMap = ThisApplication.TransientObjects.CreateNameValueMap Dim oDataMedium As DataMedium = ThisApplication.TransientObjects.CreateDataMedium oFileName = iProperties.Value("Project", "Part Number") ' Get current location of this file Dim ExportPath As String = ThisDoc.Path ' Define the filename of the file to be exported' In this Case it Is a PDF file extension ExportFilename = oFileName & ".pdf" Dim F As String = iProperties.Value("Project", "Part Number") Dim PFE As String = ExportPath & "\" & ExportFilename oOptions.Value("All_Color_AS_Black") = 0 oOptions.Value("Sheet_Range") = kPrintAllSheets oDataMedium.FileName = PFE PDFAddIn.SaveCopyAs(oDoc, oContext, oOptions, oDataMedium) Process.Start(PFE)