Message 1 of 6
iLogic batch PDF drawings - faded lines

Not applicable
07-25-2018
06:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When I batch drawings to PDF's from an assembly using iLogic, the lines on the PDF are barely visible.
Here is an example of what results I'm getting:
I've tried playing around with:
oOptions.Value("Remove_Line_Weights") - changing from 0 to 1
oOptions.Value("Vector_Resolution") - altering to various values
Neither seem to make any difference.
I'm essentially:
- looping through all referenced files
- opening their corresponding drawing (using False for OpenVisible boolean)
- looping each sheet and updating it (i.e. For each sheet > sheet.Activate > sheet.Update)
- Setting PDF options
- Saving as PDF with options
Here is a snippet of the important part:
oFullFileName = oDrawDoc.FullFileName oFileName = IO.Path.GetFileNameWithoutExtension(oFullFileName) oPDFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}") oContext = ThisApplication.TransientObjects.CreateTranslationContext oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism oOptions = ThisApplication.TransientObjects.CreateNameValueMap oDataMedium = ThisApplication.TransientObjects.CreateDataMedium oOptions.Value("All_Color_AS_Black") = 0 oOptions.Value("Remove_Line_Weights") = 0 oOptions.Value("Vector_Resolution") = 400 oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets Dim oFolder As String = ThisDoc.Path & "\PDF" 'Check for the PDF folder and create it if it does not exist If Not System.IO.Directory.Exists(oFolder) Then System.IO.Directory.CreateDirectory(oFolder) End If 'Set the PDF target file name oDataMedium.FileName = oFolder & "\" & oFileName & ".pdf" 'Publish document oPDFAddIn.SaveCopyAs(oDrawDoc, oContext, oOptions, oDataMedium)
Has anyone else experienced this? Any suggestions on how to fix?
I'm running Inventor 2018 with all latest updates.