Configuring the Creo View Adapter for Creo Elements/Direct Drafting > Advanced Creo Elements/Direct Drafting Adapter Configurations > Configuring the PDF Drawing Viewable Output Color
  
Configuring the PDF Drawing Viewable Output Color
To set the output color of PDF drawing viewables to be completely Black and White, the following macro needs to be added so the adapter’s me10Cadworker.wsf script:
startupFileHandle.WriteLine("Plot_black_and_white");
To add this, update the <Creo_View_Adapters>\system\cocreate\me10Cadworker.wsf file in the respective Creo View Adapters installation on the worker machine, so that its effect is seen while publishing a drawing.
1. Locate the line in the me10Cadworker.wsf file where function PDFPlotStore is called.
2. Insert the above macro line in the function, as shown in the example below.
3. Save the file and restart the COCRDRAFT worker.
Below is an example of the modified function in the .WSF file:
function PDFPlotStore( workdir,outfile)
{
return function(startupFileHandle)
{
startupFileHandle.WriteLine("PLOTTER_TYPE 'PDF_GENERIC' END");
startupFileHandle.WriteLine("PLOT_DESTINATION "+encodeME10String(outfile)+" END");
startupFileHandle.WriteLine("USE_SHEET_SETTINGS ON");
startupFileHandle.WriteLine("PLOT_SCALE AUTO END");
startupFileHandle.WriteLine("PLOT_SHEETS_INDIVIDUAL_FIT OFF END");
startupFileHandle.WriteLine("PLOT_CENTER ON END");
startupFileHandle.WriteLine("PLOT_BLACK_AND_WHITE");
startupFileHandle.WriteLine("PLOT_TRANSFORMATION DOTTED ALL ALL SAME PENWIDTH 1 1");
startupFileHandle.WriteLine("PLOT SHEETS ALL BW_IMG BEST_IMG NORM_VIDEO END");
}
}
* 
The Plot_black_and_white... macro entry should appear before any PLOT_TRANSFORMATION... entries that have also been added to the function, e.g. to control linetype transformation..
If you reverse the sequence you may not get the desired output.
For more information, see the following references:
The “Printing and Plotting” chapter at the Fluent User Interface > Creo Elements/Direct Drafting User’s Guide in the Creo Elements/Direct Drafting Help at PTC’s Help Center.
The “Programming Reference Guide” which is accessible via the installed Creo Elements/Direct Drafting application under <CEDD>\locale\en\me_help\me_toc.htm and accessed through the CEDD Help ‘?’ icon.