Configuring the Creo View Adapter for Creo Elements/Direct Drafting > Advanced Creo Elements/Direct Drafting Adapter Configurations > Configuring the Linetype Output to PDF Drawing Viewables
  
Configuring the Linetype Output to PDF Drawing Viewables
To control line thickness of Creo Elements/Direct Drafting drawing lines published to PDF by the worker, you currently need to manually configure the penwidth and linetype transformational values. These values are controlled by the PLOT_TRANSFORMATION command. The PLOT_TRANSFORMATION syntax is as follows:
PLOT_TRANSFORMATION <1> <2> <3> <4> PENWIDTH <5> <6>
Where
Parameter
Function
Description
<1>
linetype
Use ALL to apply the transformation to all the linetypes in the drawing.
Use SOLID, DASHED, LONG_DASHED, DOT_CENTER, DASH_CENTER, PHANTOM, CENTER_DASH_DASH, or DOTTED to apply the transformation to the defined linetypes in the drawing.
<2>
Color
Use ALL to apply the transformation to all the colors in the drawing.
<3>
Pensize
Use ALL to apply the transformation to all the pensizes in the drawing.
<4>
Target Linetype
If the new linetype is to be the same as the old linetype, use SAME.
Use SOLID, DASHED, LONG_DASHED, DOT_CENTER, DASH_CENTER, PHANTOM, CENTER_DASH_DASH, or DOTTED to perform the transformation to the defined linetypes.
<5>
Target Penwidth
Default is 0.
<6>
Pen Number
Defines the Pen Number. This depends on your current PLOT_TRANSFORMATION  definition.
For Black and White output, the value is 1.
After determining the desired command for plot transformation, write these changes to 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. To do this, complete these steps.
1. Locate the line in the me10Cadworker.wsf file where function PDFPlotStore is called.
2. Add the desired PLOT_TRANSFORMATION command after line
startupFileHandle.WriteLine("PLOT_CENTER ON END");
3. Save the file and restart the COCRDRAFT worker.
See the following 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_TRANSFORMATION DOTTED ALL ALL SAME PENWIDTH 1 1");
startupFileHandle.WriteLine("PLOT SHEETS ALL BW_IMG BEST_IMG NORM_VIDEO END");
}
}
Some examples follow:
Change penwidth to 0.25 for DOTTED lines (assuming B&W):
PLOT_TRANSFORMATION DOTTED ALL ALL SAME PENWIDTH 0.25 1
Change the linetype of DOTTED lines to DASH_CENTER (assuming B&W):
PLOT_TRANSFORMATION DOTTED ALL ALL DASH_CENTER PENWIDTH 0 1
* 
Any linetype which is accepted by Creo Elements/Direct Drafting may be input as target linetype in parameter <4> in the above function.
The penwidth may be varied by changing parameter <5> as shown above.
You can copy-paste the above function to your .WSF file.
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.