[Radiance-general] RE: Translating a grid into an acad file

Randolph Fritz randolph at panix.com
Tue Sep 5 20:06:03 CEST 2006


On Tue, Sep 05, 2006 at 01:51:46PM -0400, Jack de Valpine wrote:
> Given a well formated data file such as Martin originally posted, one 
> could write an autolisp routine to read in the data file and do 
> something with it in Autocad. This could be simple such as calling the 
> "3dmesh" command and feeding it points as part of a script. 

You don't need AutoLISP; a bit of reformatting will do.  Just create a
text file that looks like this:

3dmesh
<m> <n>
<vertex 1,1>
<vertex 1,2>
...
<vertex 1,n>
<vertex 2,1>
<vertex 2,2>
...
...
...
<vertex m,n>

Name the file mesh.scr, use the "script" command to read it in, and
Bob's your uncle.

Of course, this assumes you have a copy of AutoCAD.  If you don't, I
think it would be fairly simple to hack sdxf.py to generate the
appropriate DXF.

Randolph



More information about the Radiance-general mailing list