Filter by topic: spe, python, ubuntu

Monday, April 6, 2009

DWG support for Blender

I'm working on AR, a python library for Blender, which might be interesting for ARchitects. It targets primarily Blender python scripters, not Blender end users. However non pythoneers might be interested in the library as well, as some side products are end user friendly.

One of the features I have been working on is DWG support for Blender. It uses the DXF scripts of Blender under the hood, so it is limited to their abilities. Probably export will work better than import.


The supported DWG versions are: 9, 10, 12, 13, 14, 2000, 2004 and 2007. (It can also export to the equivalent DXF formats.)


In case you want to use this plugin for Blender, you need to install my ar package first. It has been tested both on Linux and Windows. (Mac Os X might work as well.) Afterwards read the tutorial for further instructions. You can use my DWG conversion python module also outside Blender.

Are you an architect and coding with Python in Blender? I'd love to hear from you, not just because of this blog post. Just send me an email: spe.stani.be # gmail.com

7 Kommentare:

Yorik said...

FANTASTIC!!!! 1000 thanks Stani, this is unvaluable work...

Arkinauta said...

These are good news :)
Many thanks, Stani!!

rikhard said...

nice script!
just have one problem, when I change the variable of BLENDER_SCRIPTS and after "save" it doesn't assume the directory change...why?

Nikita said...

where can I get ar/ar folder???
I cannot find it anywhere!!
Help!

Stani said...

@Nikita
http://sd-2469.dedibox.fr/ar/pages/installation.html

info said...

Using Blender 2.49a + Python 2.6.2 I had to modify the script import_everything.py:
59: rdict = Registry.GetKey(key, True)
61: Registry.SetKey(key, rdict, True)
96: ... EveryDWG.path)

info said...

Hi! I am using Blender 2.49a + Python 2.6.2
i had to change following lines in the script import_everydwg.py in order to have it working:

59: rdict = Registry.GetKey(key, True)
62: Registry.SetKey(key, rdict, True)
96: Draw.PupMenu('Error%%t|Can not find "%s"'%EveryDWG.path)

Also install PIL-1.1.6.win32-py2.6.exe (for Python 2.6)

All seems to work ok now!

Post a Comment