dxf import into empty scene fails #104691

Open
opened 2023-06-14 17:35:22 +02:00 by PAUL-J-HARPER · 1 comment

System Information
Operating system: Windows-10-10.0.25370-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 535.50

Blender Version
Broken: version: 3.5.1, branch: blender-v3.5-release, commit date: 2023-04-24 18:11, hash: e1ccd9d4a1d3
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: Import AutoCAD DXF Format (.dxf) (0, 9, 6)
Author: Lukas Treyer, Manfred Moitzi (support dxfgrabber library), Vladimir Elistratov, Bastien Montagne, Remigiusz Fiedler (AKA migius)

Short description of error
dxf import fails with following python errors. I tried to import attached dxf file: junk-test.dxf

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\__init__.py", line 521, in execute
    read(self.report, self.filepath, merge_options, self.import_text, self.import_light, self.export_acis,
  File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\__init__.py", line 101, in read
    errors = do.entities(os.path.basename(filename).replace(".dxf", ""), new_scene)
  File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\dxfimport\do.py", line 1610, in entities
    self.separated_entities((en for en in self.dwg.modelspace() if is_.separated_entity(en)), scene)
  File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\dxfimport\do.py", line 1587, in separated_entities
    _do_it(en)
  File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\dxfimport\do.py", line 1574, in _do_it
    o = self._call_object_types(en.dxftype, [en], group, name, scene, separated=True)
  File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\dxfimport\do.py", line 1362, in _call_object_types
    o = type_func(entity, scene, name)
  File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\dxfimport\do.py", line 1012, in insert
    kids = sum(1 for i in self.dwg.blocks[entity.name] if i.dxftype == "INSERT")
  File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\dxfgrabber\blockssection.py", line 56, in __getitem__
    return self._blocks[name]
KeyError: ''

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

**System Information** Operating system: Windows-10-10.0.25370-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 535.50 **Blender Version** Broken: version: 3.5.1, branch: blender-v3.5-release, commit date: 2023-04-24 18:11, hash: `e1ccd9d4a1d3` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: Import AutoCAD DXF Format (.dxf) (0, 9, 6) Author: Lukas Treyer, Manfred Moitzi (support dxfgrabber library), Vladimir Elistratov, Bastien Montagne, Remigiusz Fiedler (AKA migius) **Short description of error** dxf import fails with following python errors. I tried to import attached dxf file: junk-test.dxf ``` Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\__init__.py", line 521, in execute read(self.report, self.filepath, merge_options, self.import_text, self.import_light, self.export_acis, File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\__init__.py", line 101, in read errors = do.entities(os.path.basename(filename).replace(".dxf", ""), new_scene) File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\dxfimport\do.py", line 1610, in entities self.separated_entities((en for en in self.dwg.modelspace() if is_.separated_entity(en)), scene) File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\dxfimport\do.py", line 1587, in separated_entities _do_it(en) File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\dxfimport\do.py", line 1574, in _do_it o = self._call_object_types(en.dxftype, [en], group, name, scene, separated=True) File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\dxfimport\do.py", line 1362, in _call_object_types o = type_func(entity, scene, name) File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\dxfimport\do.py", line 1012, in insert kids = sum(1 for i in self.dwg.blocks[entity.name] if i.dxftype == "INSERT") File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\addons\io_import_dxf\dxfgrabber\blockssection.py", line 56, in __getitem__ return self._blocks[name] KeyError: '' ``` **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)]
PAUL-J-HARPER added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-06-14 17:35:22 +02:00
PAUL-J-HARPER changed title from dxf import fails to dxf import into empty scene fails 2023-06-14 17:36:41 +02:00
Member

Thanks for the report. I can confirm

Thanks for the report. I can confirm
Pratik Borhade added
Status
Confirmed
Module
Add-ons (Community)
and removed
Status
Needs Triage
labels 2023-08-09 11:15:45 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#104691
No description provided.