5.0

5.0 | 3 ratings Rate this file 47 downloads (last 30 days) File Size: 6.91 KB File ID: #7619

dxf2coord 1.1

by lukas wischounig

 

10 May 2005 (Updated 13 May 2005)

No BSD License  

The script reads the coordinates of points, lines, polylines, 3d polylines 3dfaces and circles from

Download Now | Watch this File

File Information
Description

The dxf2coord script reads the coordinates of points, lines, polylines (LWPOLYLINES with and without elevation), 3d polylines, 3dfaces and circles from an acad r2000 - r2004 ascii .dxf file. this simple script treads the .dxf file as a string and looks
for the keywords for the interested entity (e.g. 'AcDbPolyline' for polylines) and reads the following coordinates. for details see the dxf reference.

caution: this script won't read additional information like layer color,linewidth, linestyle etc.!!!

two different files are added, one saves all entities as a matrix the other as cell array

Acknowledgements
This submission has inspired the following:
Read DXF File Data
MATLAB release MATLAB 7 (R14)
Zip File Content  
Other Files dxf2coord_11_cellarray.m,
dxf2coord_11_matrix.m,
!readme.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
19 Jul 2007 SIDDARTH S DAS

Dear Sir, Thanks for the script. I am unable to save the file. Can u tell me how to save the x y z co-ordinate file or it is saving automatically in some folder. Plz help me in this regard. With regards..Siddarth

12 Oct 2007 Evgeny G.

Thank you very much!!!
You have sold a lot of my problems.

12 Oct 2007 Evgeny G.

You have SOLVED a lot of my problems.)))

16 Aug 2009 Hoda El Mahallawy

This is great Job, but I have one question; do you mean any dxf reference or there's a special site or link to a good reference?
Thank you. If you have any dxf file to test the code, I will be thankful.

24 Aug 2009 Hoda El Mahallawy

Dear sir,
how to convert the dxf file into ascii? , Cause I just drew a layout on autocad and saved it as dxf, but I get point=empty cell array

Please login to add a comment or rating.
Updates
13 May 2005

version 1.1: reads 3dfaces and circles now, output format slightly changed

Tag Activity for this File
Tag Applied By Date/Time
data import lukas wischounig 22 Oct 2008 07:48:18
data export lukas wischounig 22 Oct 2008 07:48:18
dxf lukas wischounig 22 Oct 2008 07:48:18
acad lukas wischounig 22 Oct 2008 07:48:18
autocad lukas wischounig 22 Oct 2008 07:48:18
dxf2 lukas wischounig 22 Oct 2008 07:48:18
utilities lukas wischounig 22 Oct 2008 07:48:18
data lukas wischounig 22 Oct 2008 07:48:18
export lukas wischounig 22 Oct 2008 07:48:18
import lukas wischounig 22 Oct 2008 07:48:18
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com