[Bf-python] Openingen DXF files with python

Campbell Barton cbarton at metavr.com
Tue Jun 29 15:52:30 CEST 2004


What you want is a hook to blenders open dxf function, none exist right 
now but its useually trivial to add hooks like this.
If I wasnt busy Id do it.
- Cam

blender at universalgrid.nl wrote:

>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.
>>    
>>
>
>  
>


-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241




More information about the Bf-python mailing list