@@ -0,0 +1,1113 @@
+#  Copyright (c) 2021, Manfred Moitzi%0A#  License: MIT License%0Afrom typing import Union, Iterable%0Afrom pathlib import Path%0A%0Afrom ezdxf.lldxf import loader%0Afrom ezdxf.lldxf.types import DXFTag%0Afrom ezdxf.lldxf.tagger import ascii_tags_loader%0Afrom ezdxf.lldxf.validator import is_dxf_file%0Afrom ezdxf.filemanagement import dxf_file_info%0A%0A%0Adef raw_structure_loader(filename: Union%5Bstr, Path%5D) -%3E loader.SectionDict:%0A    %22%22%22Load content of ASCII DXF file %60filename%60 as SectionDict, all tags are in%0A    raw format with the group code as integer and the value as string: (int, str).%0A%0A    %22%22%22%0A    tagger = get_tag_loader(filename)%0A    return loader.load_dxf_structure(tagger)%0A%0A%0Adef get_tag_loader(%0A    filename: Union%5Bstr, Path%5D, errors: str = %22ignore%22%0A) -%3E Iterable%5BDXFTag%5D:%0A%0A    filename = str(filename)%0A    if not is_dxf_file(filename):%0A        raise IOError(f%22File '%7Bfilename%7D' is not an ASCII DXF file.%22)%0A%0A    info = dxf_file_info(filename)%0A    with open(filename, mode=%22rt%22, encoding=info.encoding, errors=errors) as fp:  # type: ignore%0A        return list(ascii_tags_loader(fp, skip_comments=True))  # type: ignore%0A

add raw structure loader for ASCII DXF files