dxf importer fails to import correctly #49593
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#49593
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
all vendors
Blender Version
Broken: 2.78
Short description of error
Some files won't import completely. The importer crashes before finishing.
Exact steps for others to reproduce the error
Try to import this file: bug 2.7z. The original files gave 2 different errors, maybe the crash logs can help: error dxf 2.txt error dxf.txt
Changed status to: 'Open'
Added subscriber: @bliblubli
Your file has a spline with two point having the same location. The importer should actually handle this; for some reason it didn't.
2f3e4104de5a: convert.py line 178: it checked for the distance between two points, which would also allow to check for two points that are very close (replace the "0" with something very small). Now it also checks directly whether two points are the same.
@bliblu bli: be aware that you need to use the scale option if you import geometry that is that large or was generated in other units than meter. --> the unit scale option is available in the geo referencing panel. I had to use a scale of 0.001 to successfully import your file.
Thanks :) Fix works for the one error. Note that there is no such big object visible in the original file nor in the DXF when opened with our CAD program, it looks like one point was moved to 0,0,0. The original file being in Germany thus thousands of kilometers away from 0,0,0, it may be what makes the object so big.
I have an narrowed down file with the second error triggering a crash in our production file. bug 3.dxf.zip
@cnd would be good to add this fix to 2.78a :)
commit 1b58a90cd418 should solve your issues with bug 3.dxf.
Are you able to test it, so we can close this issue?
If you have an object that is far far away from 0,0,0 consider using the "Center geometry to scene" option. It's only available if your scene does not have a custom property "latitude" and "longitude" (a geo reference).
Problem solved, thank you :)
Added subscriber: @BrendonMurphy
Changed status from 'Open' to: 'Resolved'
closing as resolved