Kadmos.com


?>

  Home | Products | Download | Purchase | Support | Language

Products
DXFReader ActiveX Control
 • DXF Files Overview
 • Distribution
 • Installation
 • Quick Start
 • Control Summary
 • Download
 • Buy now!
 • DXFReader Reference
  • Properties
   • ACADVersion
   • AppID
   • AppIDs
   • AutoRedraw
   • AxesColor
   • BackColor
   • BaseX
   • BaseY
   • Block
   • BlockRecord
   • BlockRecords
   • Blocks
   • BorderStyle
   • Class
   • Classes
   • CurrentColor
   • CurrentEleva...
   • CurrentLayer
   • CurrentLineType
   • CurrentTextS...
   • CurrentThick...
   • DateCreated
   • DateLastEdited
   • DIMSTYLEc
   • DimStyles
   • DisplayAspec...
   • DrawingComment
   • DrawMode
   • Enabled
   • Entities
   • Entity
   • FileName
   • FileStatus
   • Font
   • ForeColor
   • GridColor
   • hDC
   • Layer
   • Layers
   • LineType
   • LineTypes
   • MaxX
   • MaxY
   • MinX
   • MinY
   • MouseIcon
   • MousePointer
   • Obj
   • Objects
   • PaletteButto...
   • PaletteCance...
   • PaletteCaption
   • PaletteOkBut...
   • PaletteWindo...
   • PaletteWindo...
   • PaletteWindo...
   • Picture
   • PictureBaseX
   • PictureBaseY
   • PictureHeight
   • PictureScale...
   • PictureScaleX
   • PictureScaleY
   • PictureWidth
   • PlotAspectRatio
   • PlotDocument...
   • PlotMarginBo...
   • PlotMarginLeft
   • PlotMarginRight
   • PlotMarginTop
   • PlotMode
   • PlotOriginX
   • PlotOriginY
   • PlotPenWidth
   • PlotRendering
   • PlotRotation
   • PlotScale
   • RotationAngle
   • ScaleX
   • ScaleY
   • ScrollBars
   • ShowAxes
   • ShowBasePoint
   • ShowGrid
   • ShowLimits
   • ShowPlotMargins
   • Style
   • Styles
   • ToolTipText
   • TotalEditTime
   • TotalEditTim...
   • TranslationX
   • TranslationY
   • UCS
   • UCSs
   • UserTimer
   • UserTimerDays
   • Version
   • View
   • ViewPort
   • ViewPortMaxX
   • ViewPortMaxY
   • ViewPortMinX
   • ViewPortMinY
   • ViewPorts
   • Views
   • ZoomInOutPer...
Hidden Properties
  • Methods
  • Events

 • DXFPlot Reference

IXF ActiveX Control

Postel ActiveX Control

Tech Support
OnLine Support
Phone Support
Sample Code
Registered Users
FAQ
References
Kadmos
Contact Kadmos
Environment
Customer List
Newsletter
Download
ActiveX Controls
Updates
Purchase
Price List
International Resellers
Our Guarantee
Shipment Options
Payment Options
Shopping Cart
    DXFReader Control - PlotRendering Property

Kadmos DXFReader ActiveX Control      Previous Next
DXFReader Control
PlotRendering Property

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:

ValueConstantDescription

0drGray ScalePlot output in gray scale. Every color is trasformed in its corresponding gray value
1drMonochromePlot output in monochrome (always black and white)
2drColorPlot output in color
3drPen AssignmentsPlot 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)

Copyright © 2008/2011 Kadmos.com - All rights reserved. Privacy Policy