5.0

5.0 | 2 ratings Rate this file 27 Downloads (last 30 days) File Size: 5.48 KB File ID: #28791

dxf2coord 2.0

by lukas wischounig

 

21 Sep 2010

reads the coordinates and layernames of some entities of a acad r2000 - r2007 ascii .dxf file

| Watch this File

File Information
Description

the primary target of this script was to make a simple dxf import for matlab for the most important autocadcad entities. the script reads the coordinates and layernames of entities of a acad r2000 - r2007 ascii .dxf file and saves the results as workspace variables. it works on points, lines, circles, lwpolylines (with and without elevation), 3d polylines and 3dfaces. other entities are ignored. if an recognizable entity does not exist in the .dxf file, the corresponding output variable will not be created.

CAUTION: for all the people who had problems with prior versions of dxf2coord try this one (with no guarantee that it will work). sorry for ignoring your emails! i just posted this one because i have it unused on my pc (at the moment scilab is my choice)

this code is freeware. i will NOT guarantee for the functionality of this script, nor will i be responsible in any kind for any damage because of the use of this script or the use of results calculated by this script. it's usage is all on your own risk. there is ABSOLUTELY NO WARRANTY, not even for MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE. if you don't accept these terms don't use this script. !!!!!!! CHECK THE RESULTS FOR PLAUSIBILITY !!!!!!!

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
20 Aug 2011 Adam Chapman  
18 Oct 2011 Mohammad Aref

Hi there,
Thanks for the script. There are some comments about it. In line 279, circles(:,1)=1:length(circles);
while using length function, answer will be wrong if dxf file has less than 5 circles. We have changed that line into circles(:,1)=1:size(circles,1);
so it works correctly for all numbers of circles.
One more thing, we added case('AC1012') version=('Acad R 12');
in line 109 to include Acad 12 files but we don't know about existence of any difference between DXF in Acad14 and Acad12.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
dxf lukas wischounig 22 Sep 2010 11:24:12
autocad lukas wischounig 22 Sep 2010 11:24:12
data import lukas wischounig 22 Sep 2010 11:24:12

Contact us at files@mathworks.com