[Bf-python] Openingen DXF files with python
Stephen Swaney
sswaney at swbell.net
Tue Jun 29 15:01:00 CEST 2004
blender at universalgrid.nl wrote:
>
> Hi,
> Just started Python scripting...
> Is there any way to open a dxf file with python scripting in blender?
The obvious answer to this question is to use
the 'file' built-in command. If your file is binary,
you will want the 'struct' module which means a full
python install.
import struct
f = file('my_file', 'rb') # open my_file in binary mode
The obviousnes of this answer makes me suspect I have
missed something implied by the question.
--
Stephen Swaney
sswaney at swbell.net
More information about the Bf-python
mailing list