You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Trying to recover a corrupted DXF file created and exported by Microsoft Visio Professional fails with an error.
Oddly enough, the file seems to contain multiple hatches with multiple 0 values for tag 72. The drawing contains both texts as fonts and as objects.
Traceback (most recent call last):
File "/workspaces/test/utils/read_file.py", line 17, in read_dxf
[drawing, _] = recover.readfile(file_name)
File "/home/vscode/.local/lib/python3.10/site-packages/ezdxf/recover.py", line 79, in readfile
doc, auditor = read(fp, errors=errors)
File "/home/vscode/.local/lib/python3.10/site-packages/ezdxf/recover.py", line 104, in read
return _load_and_audit_document(recover_tool)
File "/home/vscode/.local/lib/python3.10/site-packages/ezdxf/recover.py", line 141, in _load_and_audit_document
doc._load_section_dict(recover_tool.section_dict)
File "/home/vscode/.local/lib/python3.10/site-packages/ezdxf/document.py", line 387, in _load_section_dict
loader.load_and_bind_dxf_content(sections, self)
File "/home/vscode/.local/lib/python3.10/site-packages/ezdxf/lldxf/loader.py", line 150, in load_and_bind_dxf_content
for index, entity in enumerate(load_dxf_entities(section, doc)):
File "/home/vscode/.local/lib/python3.10/site-packages/ezdxf/lldxf/loader.py", line 142, in load_dxf_entities
yield factory.load(ExtendedTags(entity), doc)
File "/home/vscode/.local/lib/python3.10/site-packages/ezdxf/entities/factory.py", line 69, in load
entity = cls(tags.dxftype()).load(tags, doc)
File "/home/vscode/.local/lib/python3.10/site-packages/ezdxf/entities/dxfentity.py", line 224, in load
entity.load_tags(tags, dxfversion=dxfversion)
File "/home/vscode/.local/lib/python3.10/site-packages/ezdxf/entities/dxfentity.py", line 249, in load_tags
self.dxf = self.load_dxf_attribs(processor)
File "/home/vscode/.local/lib/python3.10/site-packages/ezdxf/entities/polygon.py", line 80, in load_dxf_attribs
tags = self.load_paths(tags)
File "/home/vscode/.local/lib/python3.10/site-packages/ezdxf/entities/polygon.py", line 107, in load_paths
self.paths = BoundaryPaths.load_tags(path_tags)
File "/home/vscode/.local/lib/python3.10/site-packages/ezdxf/entities/boundary_paths.py", line 130, in load_tags
else EdgePath.load_tags(path_tags)
File "/home/vscode/.local/lib/python3.10/site-packages/ezdxf/entities/boundary_paths.py", line 713, in load_tags
edge_path.edges.append(edge_path.load_edge(edge_tags))
File "/home/vscode/.local/lib/python3.10/site-packages/ezdxf/entities/boundary_paths.py", line 722, in load_edge
raise const.DXFStructureError(
ezdxf.lldxf.const.DXFStructureError: HATCH: unknown edge type: 0
To Reproduce
Information and data needed to reproduce the error:
Describe the bug
Trying to recover a corrupted DXF file created and exported by Microsoft Visio Professional fails with an error.
Oddly enough, the file seems to contain multiple hatches with multiple 0 values for tag 72. The drawing contains both texts as fonts and as objects.
To Reproduce
Information and data needed to reproduce the error:
Confidential Data
SVGtextimportedtoVisiov2.zip
Expected behavior
Do something magical with the file what QCAD does as well? 😄
Screenshots
In Microsoft Visio Professional before saving as DXF:
In QCAD:
The text was updated successfully, but these errors were encountered: