[Bf-python] Openingen DXF files with python

blender at universalgrid.nl blender at universalgrid.nl
Tue Jun 29 15:24:36 CEST 2004


Well, I want to open the file, just like pressing F1, automatically parsed to 
a model in Blender. 
If that isn't possible, I could write my own import script using this.

On Tuesday 29 June 2004 15:01, Stephen Swaney wrote:
> 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.

-- 
J.L. Coenders
General manager 
Universal Grid
P.O. Box 3285
2601 DG Delft
e-mail j.l.coenders at universalgrid.nl
web http://www.universalgrid.nl



More information about the Bf-python mailing list