On this page you can download samples that show how to do specific tasks using DXFReader ActiveX Control. The languages or the containers in which a sample is available are listed directly together each sample's description. These samples are made available to you at no cost, in addition to the Visual Basic samples that are included with the control. More complex samples are available for registered users on the Registered Users page.
The following samples require the installation of DXFReader ActiveX Control on your system. You can download the evaluation version right now by visiting the download page.
Feel free to send in suggestions for new samples.
Be sure also to upgrade your development tools with the latest updates or service packs.
Be sure also to download the latest maintenance release of the control.
| Borland C++ Builder |
QuickDXFbcb.zip
13 KB
C++ Builder 5 | The C++ Builder version of QuickDXF program that shows how to display and plot a DXF file. |
| Borland Delphi |
QuickDXFDelphi.zip
18 KB
Delphi 5 | The Delphi version of QuickDXF program that shows how to display and plot a DXF file and how to extract informations. |
PolyLineAreaDelphi.zip
10 KB
Delphi 4/5 | How to use the Entities collection to find the area of a closed polyline. |
RasterDXFDelphi.zip
193 KB
Delphi 4/5 | This example, called RasterDXF, will show how to merge a digitized image with a vectorial drawing using DXFReader and Delphi. |
TestAPIDelphi.zip
14 KB
Delphi 4/5 | How to use the hDC property of DXFReader with the API functions. This sample shows how to insert a picture or an icon in a drawing with the BitBlt function. |
InsertImagesDXF.zip
32 KB
Delphi 5 | This sample shows how to add an IMAGE Entity to a drawing using the mouse to define the picture window. |
TestPlotDelphi.zip
13 KB
Delphi 5 | How to zoom a drawing to the full control size and plot it in different paper format. |
ImportExportDXF.zip
25 KB
Delphi 5 | How to export data from a DXF file and how to read a text file containing boundary data and create a DXF file. |
DXFBrowser.zip
12 KB
Delphi 5 | A simple program that let to select a DXF file and show it in a preview picture. |
| Microsoft Access 95/97 - 2000 |
Access97.zip
74 KB
Access 97 | This sample shows how to use DXFReader in an Access database. A simple database contains data regarding mechanical parts of motors and a field that contains the filename of the corresponding DXF file. In a mask called "Motors" you can see how to bind the control's FileName property to display the files together with data. |
| Microsoft C# 2005 |
ZoomShowTestCS2005.zip
361 KB
| The C# 2005 version of ZoomWindowShow sample. |
| Microsoft C# 2008 |
ZoomShowTestCS2008.zip
364 KB
| The C# 2008 version of ZoomWindowShow sample. |
| Microsoft C#.NET |
ZoomShowTestCS.NET.zip
254 KB
C#.NET 2003 | The C#.NET version of ZoomWindowShow sample. |
ConvertDXFtoBMP.zip
240 KB
C#.NET 2003 | A C#.NET sample that shows how to convert a DXF file into BMP. |
| Microsoft Internet Explorer |
DXFReaderHTML.zip
10 KB
IE 5/6 | An HTML file with the correct reference to the DXFReader object. Be sure to specify the full dxf file path and name in the following tag:
PARAM NAME="FileName" VALUE="Example.dxf"
To mark the component as safe you can use the DXFReaderSafe.reg file. |
DXFReaderHTMLPanZoom.zip
11 KB
IE 5/6 | How to use the Pan and Zooms methods in an HTML page with DXFReader.
. Be sure to specify the full dxf file path and name in the following tag:
PARAM NAME="FileName" VALUE="Example.dxf"
To mark the component as safe you can use the DXFReaderSafe.reg file. |
| Microsoft J# 2005 |
ZoomShowTestJS2005.zip
370 KB
| The J# 2005 version of ZoomWindowShow sample. |
| Microsoft J#.NET |
ZoomShowTestJS.NET.zip
250 KB
J#.NET 2003 | The J#.NET version of ZoomWindowShow sample. |
| Microsoft Visual Basic |
vb4example1.zip
8 KB
VB 4.0 | A simple example to show how to load a DXF file using DXFReader Activex Control, show the print preview using DXFPlot and print the drawing. |
vb5example1.zip
10 KB
VB 5.0 | The QuickDXF application, that lets you show and plot DXF files, in VB 5.0 format. |
QuickDXF.zip
10 KB
VB 6.0 | The QuickDXF application, that lets you show and plot DXF files. |
RasterDXF.zip
187 KB
VB 6.0 | This example, called RasterDXF, will show how to merge a digitized image with a vectorial drawing using DXFReader. |
ZoomWindowShow.zip
10 KB
VB 6.0 | This example shows how to use the ShowRubberBox method for selecting a zooming window and the ZoomWindow method to zoom a drawing to the selected window. |
PanShow.zip
9 KB
VB 6.0 | This example shows how to use the ShowRubberLine method for selecting a panning distance and the Pan method. |
ShowGrid.zip
12 KB
VB 6.0 | How to show the grid, with different spacing, using the ShowGrid and the ViewPorts properties. |
Layers.zip
10 KB
VB 6.0 | List, hide or delete layers in a drawing. |
TestEntity.zip
5 KB
VB 6.0 | How to add entities to a drawing and extract informations. |
Convert.zip
11 KB
VB 6.0 | Generate a file extracting informations from a drawing. |
TestAPI.zip
11 KB
VB 6.0 | TestAPI, using the hDC property of DXFReader with the API functions. How to add text to a drawing with yellow background, insert a picture in a drawing and use the Drag and Drop methods. |
TestHDC.zip
10 KB
VB 6.0 | TestHDC, using the hDC property of DXFReader with the API functions. This sample shows how to display the drawing in another window using the BitBlt API function. |
PrintReport.zip
10 KB
VB 6.0 | This sample shows how to use DXFReader inside reporting tools like VSVIEW 7.0 by ComponentOne. Please download and install the evaluation version of VSVIEW 7.0 before using this sample.
View the resulting report in pdf format (69 KB). |
AddBlock.zip
2 KB
VB 6.0 | How to define a new block and insert it on a drawing. |
CreateDrawingFromScratch.zip
13 KB
VB 6.0 | How to create a simple DXF drawing from scratch or reading an ASCII file containg data. |
RetrieveVertexesFromPolylines.zip
69 KB
VB 6.0 | How to retrieve the vertexes' coords of a polyline and store them on a simple txt file. |
GetEntity.zip
20 KB
VB 6.0 | This example shows how to use the GetEntity method for selecting an entity with a mouse click. |
ChangePrinterOrientation.zip
16 KB
VB 6.0 | How to programmatically change the printer orientation using the PageSet.dll from Microsoft Software
Library. |
Dimension.zip
9 KB
VB 6.0 | This sample shows hou to add aligned dimensions to a drawing using mouse. It will show how to use the AddAlignedDimension and the ShowRubberAlignedDimension methods. |
DimensionTest.zip
12 KB
VB 6.0 | This sample shows hou to modify the dimension variables such as text height. It will show how to use the Hidden Properties: DIMEXO,
DIMEXE,
DIMASZ,
DIMTXT,
DIMTIH,
DIMDEC,
DIMPOST and
DIMTXSTY. |
CreateSpline.zip
2 KB
VB 6.0 | How to create a SPLINE entity reading data from a text file. |
| Microsoft Visual Basic 2005 |
ZoomShowTestVB2005.zip
417 KB
| The VB 2005 version of ZoomWindowShow sample. |
| Microsoft Visual Basic 2008 |
ZoomShowTestVB2008.zip
265 KB
| The VB 2008 version of ZoomWindowShow sample. |
| Microsoft Visual Basic for Applications |
DXFReaderWord2000.zip
21 KB
Word 2000/XP | Use DXFReader ActiveX Control to add a text to a drawing from a Word 2000/XP document. |
DXFReaderExcel2000.zip
37 KB
Excel 2000/XP | Populate an Excel table with points' coordinates of lines of a drawing using DXFReader ActiveX Control. |
| Microsoft Visual Basic.NET |
ZoomShowTest.NET.zip
275 KB
VB.NET 2003 | The VB.NET version of ZoomWindowShow sample. |
| Microsoft Visual C++ |
PolyLineAreaVC6.zip
192 KB
VC++ 6.0 | How to use the Entities collection to find the area of a closed polyline. This example contains the all DXFReader's wrapped classes of every collection of objects. |
PictureDemo.zip
834 KB
VC++ 6.0 |
Chesapeake Technology, Inc. kindly provided Kadmos with a small demo illustrating how to create and load a georeferenced image file into DXFReader ActiveX Control using Microsoft Visual C++ 6.0.
This app demonstrates handling events fired by DXFReader during loading, regenerating and mouse movement and how to efficiently regen the control when the window size changes. The Save function creates a bitmap the size of either the picture or the DXF file (@1 m/pix) by temporarily and invisibly resizing the window to the picture or DFX limits before calling the SaveBmp() method. |
AddEntities.zip
131 KB
VC++ 6.0 | How to use the Entities collection to add new entities, like lines, texts or polylines to a drawing. |
Test2.zip
114 KB
VC++ 6.0 | How to use DXFReader ActiveX Control in Visual C++ without GUI. |
MDITest.zip
125 KB
VC++ 6.0 | How to use DXFReader ActiveX Control in a MDI Application using Visual C++. |
| Microsoft Visual FoxPro |
DXFReaderTestVFP6.zip
8 KB
VFP 6.0 | A simple form with DXFReader ActiveX Control. |
| Microsoft Visual InterDev |
InterDev6.zip
10 KB
InterDev 6.0 | How to insert DXFReader in an html page using Visual InterDev. |
| Microsoft Visual J++ |
DXFReaderTestJava.zip
428 KB
VJ++ 6.0 | How to use the properties, methods and events with DXFReader ActiveX Control. This sample contains all the wrapper classes for DXFReader. |