dxf import with dupliface rotates blocks 90° and create non-existing geometry. #49915

Closed
opened 2016-11-02 11:25:35 +01:00 by matali23 · 16 comments

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: test layern ebenen.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:
import options.PNG
You will get wrong rotation of 90° of the blocks:
error block as dupligroup.PNG
If you import as linked instances, the rotation is correct and no random geometry is created.
correct block as linked instances.PNG

**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: [test layern ebenen.dxf](https://archive.blender.org/developer/F390705/test_layern_ebenen.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: ![import options.PNG](https://archive.blender.org/developer/F390712/import_options.PNG) You will get wrong rotation of 90° of the blocks: ![error block as dupligroup.PNG](https://archive.blender.org/developer/F390714/error_block_as_dupligroup.PNG) If you import as linked instances, the rotation is correct and no random geometry is created. ![correct block as linked instances.PNG](https://archive.blender.org/developer/F390716/correct_block_as_linked_instances.PNG)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @matali23

Added subscriber: @matali23
Author

Added subscriber: @cnd

Added subscriber: @cnd
Lukas Treyer was assigned by Bastien Montagne 2016-11-04 09:19:31 +01:00

Added subscriber: @bliblubli

Added subscriber: @bliblubli

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.

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

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

@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 changed title from dxf import fails for white surfaces and rotates blocks 90° to dxf import with dupliface rotates blocks 90° and create non-existing geometry. 2017-06-01 15:18:22 +02:00
Author

edited task name to reflect changes in behavior.

edited task name to reflect changes in behavior.
Member

This comment was removed by @cnd

*This comment was removed by @cnd*
Author

@cnd it only happens with dupliface, using those options:
bug dupliface dxf.PNG

@cnd it only happens with dupliface, using those options: ![bug dupliface dxf.PNG](https://archive.blender.org/developer/F615258/bug_dupliface_dxf.PNG)
Author

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

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

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.

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

hi @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.
Author

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

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

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

this seems to have been resolved

this seems to have been resolved
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#49915
No description provided.