PDA

View Full Version : ascii coordinate export


jevans
09-09-2004, 02:01 AM
Im looking for a way to create an ascii XYZ text file of coordinates created in AutoCAD 2000i-2005.

This is so I can create 3d models using only (lines, polylines, 3dpolylines, and 3dfaces) using AutoCAD 2005 to import into an acoustical prediction program.

Iv looked at 3rd pary apps but they dont do exactly what I want them to do
plus I like other to be able and use what ever solution I get to work for free.


Thanks,

/Josh_Evans/

This is the ascii format that my acoustical prediction program understands.


"LengthUnit","ft"
;
"Material","ABSORBER"
-82.021,-82.021,164.0387
-82.021,-82.021,0
82.021,-82.021,0
82.021,-82.021,164.0387
"End"
;
"Material","ABSORBER"
82.021,82.021,164.0387
82.021,82.021,0
-82.021,82.021,0
-82.021,82.021,164.0387
"End"
;
"Material","ABSORBER"
-82.021,82.021,164.0387
-82.021,82.021,0
-82.021,-82.021,0
-82.021,-82.021,164.0387
"End"
;
"Material","ABSORBER"
82.021,-82.021,164.0387
82.021,-82.021,0
82.021,82.021,0
82.021,82.021,164.0387
"End"
;
"Material","ABSORBER"
82.021,82.021,0
82.021,-82.021,0
-82.021,-82.021,0
-82.021,82.021,0
"End"
;
"Material","ABSORBER"
82.021,82.021,164.0387
-82.021,82.021,164.0387
-82.021,-82.021,164.0387
82.021,-82.021,164.0387
"End"

CarLB
10-09-2004, 01:00 AM
I interpret jevans request quite differently. A script is not in order. He wants to extract drawing information, put it in an ascii file of the format shown, for use in an acoustical program. This is quite doable with a lisp or VBA routine. But if the draqing model is lines, polylines, & 3d faces, that would involve too much "interpretation" by a program. The example "absorbers" in the ascii file appear to be all rectangles. If the model is drawn as 3d faces then a routine could handle it fairly easily. Either the routine, or later manual editing of the file could be used to insert the repeating lines:

"End"
;
"Material","ABSORBER"

architech
10-09-2004, 04:24 PM
:oops: ... I missed that ...
:? .. thanks Carl.
I deleted my post about going in the reverse direction.

... I think need some "Ginsing" to pay better attention here. :)

jevans
10-09-2004, 04:46 PM
CarLB is correct

Im doing my modeling in AutoCAD2005 and then importing the dxf into my acoustical program.