Can anybody help????
Does anybody know how to set the pdf "Colour" or "Black & White" option using a vba macro?
I have already created a vba macro that creates a Pdf file every time the user presses "Save" when in a "SldDrw" (drawing) document.
I want to output "Black & White" Pdf files for detail drawings and "Colour" Pdf files for assemblies.
Many thanks in advance!!!!
No need to panic .
You need to set solidworks's user preference to print your docs in black and white. Here's an example:
'swApp is a SldWorks.SldWorks typeswApp.SetUserPreferenceToggle swUserPreferenceToggle_e.swPDFExportInColor, 0
Source:2013 SOLIDWORKS API Help - File > Save As > Save as type > PDF > Options > PDF
Retrieving data ...