Export/Import Question

I’m creating polylines in ArchiCAD and then exporting them to blender as a .dxf file.
Once in Blender, I make geometry out of the lines.
Then I export the geometry from blender as a .dae file to get it into C4.
But Every time I try to do this i get a script error and nothing exports.

Python script error: Check console

FEEDBACK: Illusoft Collada 1.4 Plugin v0.3.161 started
FEEDBACK: Time to process and save data: 0.2
FEEDBACK: FINISHED - time elapsed: 1.9
Export options: COLLADA-Selected-Transform
Exporting: C:\Users\user\Desktop\MODELING ASSIGNMENT\Building.dae…
Traceback (most recent call last):
File “C:\Users\user\Desktop\blender-2.49-windows-py25.blender\scripts\collada
_export.py”, line 3572, in callback_fileselector
main( filename )
File “C:\Users\user\Desktop\blender-2.49-windows-py25.blender\scripts\collada
_export.py”, line 3545, in main
writeLibrary( collada )
File “C:\Users\user\Desktop\blender-2.49-windows-py25.blender\scripts\collada
_export.py”, line 3251, in writeLibrary
key = material.getName( )
AttributeError: ‘NoneType’ object has no attribute ‘getName’

Now when I create a plain mesh in blender from scratch an export it into C4 it works about 95% of the time, but anything that was originally in ArchiCAD is a no go.

So i guess my question is, What is the problem here, and how Can I fix it and keep my work path?

(I’ve only been using Blender for about a week or so)


The last line of the error text appears to suggest that the object has no material name (NB: I’m not a Python programmer so this is a guess!). Have you tried assigning a material to each object? To do this, select the object/mesh, press F5 to show the “Links and Pipeline” panel, then click the Add New button. That’ll give it a default material, which might be enough.