How to Open a dxf or obj file

Maybe this isn’t the right forum or place to ask, but where I’m looking for the answer.

When I try to open a dxf or obj file w/ blender it says it’s wrong format.

Also I downloaded the IO-suite but it gives an error:
File “Import.py”, line 9, in ?
ImportError: No module named GUI

Blender quit

Where can I find out how to open dxf and obj files (poser) in Blender 2.25 or 2.26?

Thanks

WillyB

Well, this probably should be in the Q&A forum, but hey, we have all posted stuff in the wrong place before. So don’t worry about it. :wink:

First off, Blender does not support direct opening of obj format. You need to use the Python import/export script to convert it. You should be able to open dxf files with no problem at all. Just open the file as you normally would. Just note that Blender does not like dxf files very much. It opens them, but they are a damned mess.

For your second problem, the Python error, do you have Python installed and set up correctly? That would be the first thing. Next, don’t try and use any scripts in anything above 2.25. They are buggy, even if they work.

BgDM

don’t quote me on this, but I think that to be importable, a DXK must not include n-gons (faces with more than 4 vertice).

Martin

Thanks for the replys :slight_smile:

I put this in my .bashrc a while ago so I could use some other python scripts.

Python Path

export PYTHONPATH=/usr/lib/python2.2:/usr/lib/python2.2/plat-linux2:/usr/lib/python2.2/lib-tk:/usr/lib/python2.2/lib-dynload
:/usr/lib/python2.2/site-packages

Not sure what else to do to set it up further.
I used what I read in the other thread here on how to set up python.

The dxf files probably do have more than 4 faces, not sure because I downloaded them from the net.

I don’t have poser, so am trying to get some poser models from the net so I can use them as a basis for new models.

WillyB

The IO-Suite requires Blender 2.23 (the GUI module went away after that). I would just import in 2.23, and then edit in 2.25/6.

Yes,

Pity about the GUI disappearing after 2.3.

In fact the IO suite have a number of functions that are no longer supported, so, unless you fancy a bit of a challenge, it’s not really on to hack the scripts.

Try using Crossroads. (http://www.europa.com/~keithr/Crossroads/index.html) to convert the dxf into vrml and then try to import that, I seem to remember I had some success at that…

Or install a pre-2.4 version of Blender for the import as has been suggested elsewhere…