5.0

5.0 | 3 ratings Rate this file 20 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)

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

| 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)
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

Contact us at files@mathworks.com