Page MenuHome

dxf import with dupliface rotates blocks 90° and create non-existing geometry.
Open, NormalPublic

Description

System Information
All

Blender Version
Broken: 2.78a

Short description of error
When importing surfaces with pure white, they won't import at all. If they are blocks and imported as dupliface, they will be rotated 90° for some reason and create geometry that is not in the original DXF and should not be there (Despite the dupliface geometry which of course has to be created)

Exact steps for others to reproduce the error
Import this DXF:


One rectangle is missing at the bottom right (only difference with the other rectangles is that its color is pure white. But it is filled and should be displayed.
If you import with this options:

You will get wrong rotation of 90° of the blocks:

If you import as linked instances, the rotation is correct and no random geometry is created.

Details

Type
Bug

Event Timeline

Bastien Montagne (mont29) triaged this task as Normal priority.

I can confirm the bug and it's pretty annoying. Looking back at old projects, I did some serious mistakes because of this 90° rotation only happening on blocks. Would be great to have the fix backported to 2.78.

@Lukas Treyer (cnd) the missing rectangle bug is gone with latest commit, thanks.
The wrong 90° rotation is still there with duplifaces. The extra rectangles (which are not dupliface geometry nor geometry from the DXF) are also still there.

matali23 (matali23) renamed this task from dxf import fails for white surfaces and rotates blocks 90° to dxf import with dupliface rotates blocks 90° and create non-existing geometry..Jun 1 2017, 3:18 PM

edited task name to reflect changes in behavior.

This comment was removed by Lukas Treyer (cnd).

@Lukas Treyer (cnd) it only happens with dupliface, using those options:

Just tested with 2.78c and new addon version, still the same problem with dupliface (options used above)

If in do.py you move line 1423 after 1426 it helps with the rotation, but I have no clue at the moment how that affects other dxf files.

hi @Lukas Treyer (cnd)
just tested your rotation fix and I can confirm it works on my dxf files. Great :) Will test further this WE to see if some other files from other CAD software are now wrongly rotated, but it looks good.

matali23 (matali23) added a comment.EditedJun 2 2017, 11:44 AM

@Lukas Treyer (cnd) Thanks for the fix, it works. I tested on several files and the rotation was right. I don't see why it would be right on some files and wrong on other, but only time will say if it works in all cases I guess.