pelicanpic

DXFReader Cocoa Framework

DXFReader is a framework developed in Objective-C 2.0 for reading the entities from a standard ASCII DXF file. It is an open source library issued under a standard BSD license. The library employs Objective-C 2.0 properties and garbage collection, so it requires Mac OS X 10.5 or later.

DXFReader is available through SourceForge at http://dxfreader.sourceforge.net/ and http://sourceforge.net/projects/dxfreader. The SourceForge site contains a Subversion repository for getting the latest version of the code.

DXFReader version 0.3 source is also available to be downloaded from this site. This source code zip file contains an XCode 3.1.2 project and all the necessary files to build the DXFReader framework.

DXFReader.framework compiled v.0.3 contains the compiled framework of the latest version.

A mailing list is available for both users and developers of the DXFReader framework. See https://lists.sourceforge.net/lists/listinfo/dxfreader-info for more information and to sign up.

Support This Project If you find this library useful, please consider donating to support further development.

DXFReader Documetation

The source code for DXFReader is well documented following the Apple HeaderDoc format using @abstract, @discussion, etc tags.The DXFReader documentation generated by HeaderDoc is also available directly on this site. I realize that this documentation is not particularly well-formatted and the navigation links leave quite a bit to be desired. I plan on looking into Doxygen to create more usable documentation for future versions of DXFReader.

Overview

The DXFReader.framework provides classes for reading a standard ASCII text DXF file into an array of "entities" (to use the AutoCAD term) that can be used by a program implementing this framework. The BBDXFModel object is the main class. It includes methods for reading and parsing the DXF file.

The BBDXFEntity class and its subclasses (BBDXFEntityLine, Polyline, Arc, etc) follow the data structure established by AutoCAD in their definition of the DXF file standard. One of these custom objects is created for each entity contained in the DXF file for the types that are supported by this framework.

The framework is developed following the AutoCAD 2009 DXF standard. With this version (0.3) only the following entity types are supported: LINE, LWPOLYLINE, ARC, CIRCLE, TEXT, MTEXT, BLOCKs, INSERTs.

Copyright © 2009 Allan Daly

brown-bird.net