Click or drag to resize

DXFReaderNETControl Class

The main component that allows viewing, manipulating and plotting any 2D/3D DXF file. With this control you can also retrieve every drawing information and every entity and easily perform data manipulation and/or analysis. With DXFReader you can also import and scale a raster image to use together with the drawing.
Inheritance Hierarchy

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.8.4
Syntax
public class DXFReaderNETControl : UserControl

The DXFReaderNETControl type exposes the following members.

Constructors
  NameDescription
Public methodDXFReaderNETControl
The main component that allows viewing, manipulating and plotting any 2D/3D DXF file. With this control you can also retrieve every drawing information and every entity and easily perform data manipulation and/or analysis. With DXFReader you can also import and scale a raster image to use together with the drawing.
Top
Properties
  NameDescription
Public propertyAntiAlias
Returns/sets whether the control will display with antialias rendering.
Public propertyAxesColor
Returns/sets the color used to display the limits box.
Public propertyAxisXColor
Returns/sets the color used to X axis.
Public propertyAxisYColor
Returns/sets the color used to Y axis.
Public propertyAxisZColor
Returns/sets the color used to Z axis.
Public propertyBackColor
Returns/sets the background color.
Public propertyBase
Returns/sets the base point of the drawing.
Public propertyContinuousHighlight
Returns/sets if then highlighted entities are continuosly shown after zoom or redraw.
Public propertyCurrentWCSpoint
Returns the current point in world coordinates.
Public propertyCursorSelectionSize
Returns/sets the pickbox size in pixel of the selection cursor.
Public propertyCode exampleCustomCursor
Gets or sets the custom cursor that is displayed when the mouse pointer is over the control.
Public propertyDrawTime
Returns the time needed to draw a DXF file.
Public propertyDXF
The DXF document currently loaded/displayed in the control.
Public propertyFileName
Returns/sets the DXF file to display in the control.
Public propertyForeColor
Returns/sets the foreground color used to display graphics in the control.
Public propertyGridColor
Returns/sets the color used to display the grid's lines in the control.
Public propertyGridDisplay
Returns/sets the grid display mode.
Public propertyHighlightColor
Returns/sets the color used to display highlited entities.
Public propertyHighlightEntityOnHover
Gets/sets the displaying of grid ruler.
Public propertyHighlightMarkerColor
Returns/sets the color used to display the marks of highlighted entities.
Public propertyHighlightMarkerColor2
Returns/sets the color used to display the secondary marks of highlighted entities.
Public propertyHighlightNotContinuous
Definition to add
Public propertyImage
Gets the image that is displayed by the control.
Public propertyLowerLeftCorner
Returns the lower left corner of visible area in world coordinates.
Public propertyMouseWheelBehavior
Returns/sets the scroll behavior of the mouse wheel for the control.
Public propertyObjectOsnapMode
Gets/sets the object osnap type mode.
Public propertyPlotAspectRatio
Returns/sets the aspect ratio of the plotted drawing. This aspect ratio is the relationship between the drawing's two dimensions, expressed as width divided by height.
Public propertyPlotMarginBottom
Returns/sets the bottom margin of the plotting page.
Public propertyPlotMarginLeft
Returns/sets the left margin of the plotting page.
Public propertyPlotMarginRight
Returns/sets the right margin of the plotting page.
Public propertyPlotMarginTop
Returns/sets the top margin of the plotting page.
Public propertyPlotMode
Returns/sets the current plotting mode.
Public propertyPlotOffset
Returns/sets the lower-left corner of the plottable area.
Public propertyPlotPenWidth
Returns/sets the width (in drawing units) of the plotted lines or arcs.
Public propertyPlotRendering
Returns/sets the rendering modes on color/bw printers.
Public propertyPlotRotation
Returns/sets the orientation of the plotted drawing.
Public propertyPlotScale
Returns/sets the plot scale factor.
Public propertyPlotTime
Returns the time needed to plot a DXF file.
Public propertyPlotUnits
Returns/sets the current plotting units.
Public propertyReadTime
Returns the time needed to read a DXF file.
Public propertyRendering
Returns/sets the rendering modes.
Public propertyRubberBandPenWidth
Returns/sets the width in pixel of the pen used to draw rubber band lines.
Public propertyShowAxes
Returns/sets whether the control will display the axes.
Public propertyShowBasePoint
Returns/sets whether the control will display the base point.
Public propertyShowExtents
Returns/sets whether the control will display the drawing extents.
Public propertyShowGrid
Returns/sets whether the control will display the grid.
Public propertyShowGridRuler
Gets/sets the displaying of grid ruler.
Public propertyShowLimits
Returns/sets whether the control will display the drawing limits.
Public propertyTrueTypeFontDir
Returns/sets the additional true type fonts directory.
Public propertyUpperRightCorner
Returns the upper right corner of visible area in world coordinates.
Public propertyVersion
Returns the current version of the control.
Public propertyWriteTime
Returns the time needed to read a DXF file.
Public propertyZoomInOutPercent
Returns/sets the increase/decrease factor (x 100) for zooming using ZoomIn, ZoomOut, ZoomSpotIn and ZoomSpotOut methods.
Top
Methods
  NameDescription
Public methodAbout
Displays the About Box.
Public methodAddAlignedDimension(Line, Vector3, String, Int16, String, String)
Adds a new aligned dimension to the current drawing giving the reference line.
Public methodAddAlignedDimension(Line, Double, String, Int16, String, String)
Adds a new aligned dimension to the current drawing giving the reference line.
Public methodAddAlignedDimension(Vector3, Vector3, Vector3, String, Int16, String, String)
Adds a new aligned dimension to the current drawing with start point and end point.
Public methodAddAlignedDimension(Vector3, Vector3, Double, String, Int16, String, String)
Adds a new aligned dimension to the current drawing with start point and end point.
Public methodAddAngularDimension(Arc, Vector3, String, Int16, String, String)
Adds a new angular dimension to the current drawing giving an arc.
Public methodAddAngularDimension(Arc, Double, String, Int16, String, String)
Adds a new angular dimension to the current drawing giving arc and offset.
Public methodAddAngularDimension(Line, Line, Vector3, String, Int16, String, String)
Adds a new angular dimension to the current drawing giving two reference lines and the position.
Public methodAddAngularDimension(Line, Line, Double, String, Int16, String, String)
Adds a new angular dimension to the current drawing giving two reference lines and the offeset from center point.
Public methodAddAngularDimension(Vector3, Vector3, Vector3, Vector3, String, Int16, String, String)
Adds a new angular dimension to the current drawing giving center point, start point and end point.
Public methodAddAngularDimension(Vector3, Vector3, Vector3, Double, String, Int16, String, String)
Adds a new angular dimension to the current drawing giving center point, start point and end point.
Public methodCode exampleAddArc(Vector3, Vector3, Vector3, Int16, String, String)
Adds a new arc to the current drawing specifing start point, end point and a pont on arc.
Public methodCode exampleAddArc(Vector3, Double, Double, Double, Int16, String, String)
Adds a new arc to the current drawing.
Public methodAddBlock
Adds a new block to the current drawing.
Public methodCode exampleAddCircle(Vector3, Double, Int16, String, String)
Adds a new circle to the current drawing with center and radius.
Public methodCode exampleAddCircle(Vector3, Vector3, Vector3, Int16, String, String)
Adds a new circle to the current drawing passing from three points.
Public methodAddDiametricDimension(Arc, Vector3, String, Int16, String, String)
Adds a new diametric dimension to the current drawing giving the reference arc.
Public methodAddDiametricDimension(Circle, Vector3, String, Int16, String, String)
Adds a new diametric dimension to the current drawing giving the reference circle.
Public methodAddDiametricDimension(Arc, Double, Double, String, Int16, String, String)
Adds a new diametric dimension to the current drawing giving the reference arc.
Public methodAddDiametricDimension(Circle, Double, Double, String, Int16, String, String)
Adds a new diametric dimension to the current drawing giving the reference circle.
Public methodCode exampleAddEllipse
Adds a new ellipse to the current drawing.
Public methodCode exampleAddFace3D
Adds a 3D face to the current drawing.
Public methodCode exampleAddGradientHatch
Adds a new gradient hatch to the current drawing.
Public methodAddHatch(HatchPattern, ListEntityObject, ListEntityObject, Double, Double, Int16, String, String)
Adds a new hatch to the current drawing giving the pattern object.
Public methodAddHatch(String, ListEntityObject, ListEntityObject, Double, Double, Int16, String, String)
Adds a new hatch to the current drawing giving the pattern name.
Public methodAddImage
Adds a new image to the current drawing.
Public methodAddInsert
Adds a new insert entity to the current drawing.
Public methodAddLayer
Adds a new layer to the drawing.
Public methodAddLightWeightPolyline
Adds a new light weight polyline to the current drawing.
Public methodAddLine(Vector3, Vector3, Int16, String, String)
Adds a new line to the current drawing.
Public methodAddLine(Vector3, Double, Double, Int16, String, String)
Adds a new line to the current drawing using polar coordinates.
Public methodAddLinearDimension(Line, Vector3, Double, String, Int16, String, String)
Adds a new linear dimension to the current drawing giving the reference line.
Public methodAddLinearDimension(Line, Double, Double, String, Int16, String, String)
Adds a new linear dimension to the current drawing giving the reference line.
Public methodAddLinearDimension(Vector3, Vector3, Vector3, Double, String, Int16, String, String)
Adds a new linear dimension to the current drawing with start point and end point.
Public methodAddLinearDimension(Vector3, Vector3, Double, Double, String, Int16, String, String)
Adds a new linear dimension to the current drawing with start point and end point.
Public methodAddOle2Frame
Adds a new image to the current drawing as an embedded ole2frame entity.
Public methodAddPDFUnderlay
Adds a new PDF underlay to the current drawing.
Public methodAddPoint
Adds a new point to the current drawing.
Public methodAddPolygon
Adds a new regular polygon inscribed in a circle to the current drawing with center, radius and rotation.
Public methodAddPolyline
Adds a new polyline to the current drawing.
Public methodAddRadialDimension(Arc, Vector3, String, Int16, String, String)
Adds a new radial dimension to the current drawing giving the reference arc.
Public methodAddRadialDimension(Circle, Vector3, String, Int16, String, String)
Adds a new radial dimension to the current drawing giving the reference circle.
Public methodAddRadialDimension(Arc, Double, Double, String, Int16, String, String)
Adds a new radial dimension to the current drawing giving the reference arc.
Public methodAddRadialDimension(Circle, Double, Double, String, Int16, String, String)
Adds a new radial dimension to the current drawing giving the reference circle.
Public methodAddRay
Adds a new ray to the current drawing.
Public methodAddSolid
Adds a new solid to the current drawing.
Public methodAddSpline
Adds a new spline to the current drawing.
Public methodAddText
Adds a new text to the current drawing.
Public methodAddTextStyle
Adds a new text style to the drawing.
Public methodAddTrace
Adds a new trace to the current drawing using current trace witdh.
Public methodAddView
Adds a new view to the drawing.
Public methodAddViewPort
Adds a new viewport to the drawing.
Public methodAddXLine
Adds a new contruction line to the current drawing.
Public methodChamfer
Chamfers the edges of two objects.
Public methodClear
Clears graphics in the control.
Public methodClearDrawnElements
Clears elements added with the Draw methods.
Public methodContour
Find the contour from an entity.
Public methodCoordsToWorld
Converts pixels coordinates to drawing's coordinates.
Public methodDefaultColorScheme
Use the default color scheme for the control
Public methodDisplayPredefinedView
Displays the drawing with predefined mode.
Public methodDisplayView
Retreives the drawing view specified by ViewName parameter.
Public methodDrawArc
Draws an arc on the control.
Public methodDrawCircle
Draws a circle on the control.
Public methodDrawEntity
Draws a single entity without refreshing the whole drawing.
Public methodDrawImage
Draws an image on the control.
Public methodDrawLine
Draws a line on the control.
Public methodDrawPoint
Draws a point on the control.
Public methodDrawPolygon
Draws a polygon on the control.
Public methodDrawText(Pen, String, Vector2, Double, Double, FontStyle, TextAlignment, Boolean)
Draws a text on the control.
Public methodDrawText(Pen, String, Vector2, Double, Double, FontStyle, StringAlignment, Boolean)
Draws a text on the control.
Public methodEntitiesToLwPolylines
Groups a list of Lines, Arcs and polylines into lwpolylines.
Public methodExplodeBlockAsNewDrawing
Creates a new drawing with all block elements.
Public methodExtend
Extends an entity.
Public methodFillet
Rounds and fillets the edges of objects.
Public methodGetEntities
Returns a list of entity objects contained in a rectangle.
Public methodGetEntity(Vector2)
Returns the nearest entity to position.
Public methodGetEntity(ListEntityObject, Vector2)
Returns the nearest entity among a list of entities to position.
Public methodHighLight(EntityObject)
Highlights the selected entity.
Public methodHighLight(ListEntityObject)
Highlights a list of entities.
Public methodJoin
Joins two entities.
Public methodLightColorScheme
Use the light color scheme for the control
Public methodNewDrawing
Creates a new drawing deleting every drawing classes.
Public methodOffset
Offsets an entity.
Public methodOrbit
Orbiting about a direction.
Public methodCode examplePan
Pans the drawing of a distance indicated by the StartPoint-EndPoint segment.
Public methodPixelToWorld
Converts pixels size to drawing's units.
Public methodPlot
Plots the drawing using the default printer.
Public methodPlotPreview
Displays the plot preview on a PrintPreviewControl.
Public methodReadDXF
Reads and displays the DXF file indicated by the FileName property or by the DXFFileName parameter.
Public methodReadHatchPatternsFromFile
Returns a list of pattern objects from the definitions in a pat file.
Public methodReadOBJ
Read a Wavefront .obj file and add its data to the current drawing.
Public methodSetLimits
Sets the drawing limits.
Public methodShowDimStyles
Shows the default dimension styles dialog for the control.
Public methodShowDrawingInfo
Shows the default drawing info dialog.
Public methodShowDrawingUnits
Shows the default drawing untis dialog.
Public methodShowLayers
Shows the default layers dialog for the control.
Public methodCode exampleShowPalette
Shows the default Palette dialog for the control.
Public methodShowProperties(Object)
Shows all properties of a generic object with a modal form.
Public methodShowProperties(String)
Shows all properties of an object with a modal form.
Public methodShowRubberBandAlignedDimension(Line, Vector2, NullableColor, RubberBandType)
Shows the distance specified by referenc line as a rubber band aligned dimension.
Public methodShowRubberBandAlignedDimension(Vector2, Vector2, Vector2, NullableColor, RubberBandType)
Shows the distance specified by the StartPoint and EndPoint parameters as a rubber band aligned dimension.
Public methodShowRubberBandAngularDimension
Shows the angle specified by the center point, radius, start angle and end angle parameters af an arc as a rubber band angular dimension.
Public methodShowRubberBandArc
Shows the arc specified by the center point, radius, start angle and end angle parameters as a rubber band arc.
Public methodShowRubberBandBox(Vector2, Vector2, NullableColor, RubberBandType)
Shows the rectangle specified by the StartPoint and EndPoint parameters as a rubber band rectangle.
Public methodShowRubberBandBox(Vector2, Double, Double, NullableColor, RubberBandType)
Shows the rectangle specified by the Position, Width and Height parameters as a rubber band rectangle.
Public methodShowRubberBandCircle
Shows the circle specified by the CenterPoint and Radius parameters as a rubber band circle.
Public methodShowRubberBandEntities
Shows the entities specified by Entities parameter as a rubber band group of entities.
Public methodCode exampleShowRubberBandLine
Shows the distance specified by the StartPoint and EndPoint parameters as a rubber band line.
Public methodShowRubberBandLinearDimension(Line, Vector2, Double, NullableColor, RubberBandType)
Shows the distance specified by referenc line as a rubber band linear dimension.
Public methodShowRubberBandLinearDimension(Vector2, Vector2, Vector2, Double, NullableColor, RubberBandType)
Shows the distance specified by the StartPoint and EndPoint parameters as a rubber band linear dimension.
Public methodShowRubberBandPolygon
Shows the polygon specified by the Points parameter as a rubber band polygon.
Public methodTrim(EntityObject, EntityObject, Vector2)
Trims an entity.
Public methodTrim(ListEntityObject, EntityObject, Vector2)
Trims an entity.
Public methodWorldToCoords
Converts drawing's coordinates to pixels coordinates.
Public methodWriteDXF
Writes the current drawing on a DXF file on disk.
Public methodZoomCenter
Zooms to the center of display window.
Public methodZoomExtents
Zooms to the full drawing extents.
Public methodZoomIn
Zooms in a drawing by scale factor specified in the ZoomInOutPercent property from the center point of the drawing.
Public methodZoomLimits
Zooms a drawing to the full limits.
Public methodZoomNext
Zooms to the next view.
Public methodZoomOut
Zooms out a drawing by scale factor specified in the ZoomInOutPercent property from the center point of the drawing.
Public methodZoomPrevious
Zooms to the preceding view.
Public methodZoomSpotIn
Zooms in a drawing by scale factor specified in the ZoomInOutPercent property from the position.
Public methodZoomSpotOut
Zooms out a drawing by scale factor specified in the ZoomInOutPercent property from the position.
Public methodZoomWindow
Zooms a drawing to the window specified by the StartPoint and EndPoint parameters.
Top
Events
  NameDescription
Public eventDrawingStatus
Fired when a DXF file is being drawn.
Public eventEndDrawing
Fired when the drawing of a DXF file is ended.
Public eventEndPlot
Fired when the plot of a DXF file is ended.
Public eventEndRead
Fired when the reading of a DXF file is ended.
Public eventEndWrite
Fired when the writing of a DXF file is ended.
Public eventError
Fired when a non blocking error occurs during operations.
Public eventPlotStatus
Fired when a DXF file is being plot.
Public eventReadStatus
Fired while a DXF file is being read.
Public eventStartDrawing
Fired when the drawing of a DXF file is started.
Public eventStartPlot
Fired when the plot of a DXF file is started.
Public eventStartRead
Fired when the reading of a DXF file is started.
Public eventStartWrite
Fired when the writing of a DXF file is started.
Public eventWriteStatus
Fired while a DXF file is being written.
Top
See Also