|
Description
|
Returns/sets the rendering modes on color/b&w printers.
|
Syntax Visual Basic
|
[form.]DXFReader.PlotRendering[ = PlotRenderingEnum]
|
|
Visual C++
|
long DXFReader.GetPlotRendering(); void DXFReader.SetPlotRendering(long nNewValue);
|
|
Delphi
|
property PlotRendering: TOleEnum (PlotRenderingEnum);
|
|
C#
|
|
|
Remarks
|
Valid settings for the PlotRendering property are:
| 0 | drGray Scale | Plot output in gray scale. Every color is trasformed in its corresponding gray value | | 1 | drMonochrome | Plot output in monochrome (always black and white) | | 2 | drColor | Plot output in color | | 3 | drPen Assignments | Plot output based on pen assignments |
When the PlotRendering property is set to drPen Assignments you can set the plot pen linetype and width associated with each ACI color, an integer number from 1 to 255 corresponding to the AutoCAD Color Index.
In order to allow to print with different line types or widths, you have to create a txt file and assign its name and path to the PenAssignmentsFileName hidden property.
The structure of this file must be the following:- Chars from 1 to 3: the ACI color to which you are assigning a width or a linetype.
- Chars 5: The linetype code. The linetypes available are usually the following:
0 | Solid Line | | 1 | Dash | ------- | 2 | Dot | ....... | 3 | DashDot | _._._._ | 4 | DashDotDot | _.._.._ |
- Chars from 7 to 11: the line width in twips.
A sample PenAssignments file:
001 0 00005 002 0 00003 003 2 00000 004 3 00000 055 4 00000
Note that the width is meaningful only for solid lines.
The following code will plot the drawing with pen assignments specified by the pens.txt file:
With DXFReader1 .PlotRendering = [drPen Assignments] .PenAssignmentsFileName = App.Path + "\pens.txt" .Plot End With
|
|
Data Type
|
PlotRenderingEnum (Enumeration)
|
|
Default Value
|
drGray Scale (0)
|