def runtest():
    dxfnames = get_filenames()
    for dxfname in dxfnames:
        print('-' * 40)
        dwg1 = ezdxf.readzip(SOURCE_ZIP, dxfname)
        dwg2 = copy_by_writing(dwg1)
        compare_dwg(dwg1, dwg2)
def test_read_from_zip():
    dwg = ezdxf.readzip(CP936_ZIP_FILE)
    assert dwg.filename is not None
    assert dwg.dxfversion is not None
Exemple #3
0
def test_rwrc(filename):
    dwg1 = ezdxf.readzip(ZIP_FILE_NAME, filename)
    dwg2 = copy_by_writing(dwg1)
    compare_dwg(dwg1, dwg2)
Exemple #4
0
 def test_read_ac1009(self):
     dwg = ezdxf.readzip(get_zip_path(ZIPFILE), 'AC1009.dxf')
     msp = dwg.modelspace()
     lines = msp.query('LINE')
     self.assertEqual(255, len(lines))
Exemple #5
0
def read_from_zip(filename):
    print("Open DXF file from ZIP archive: '{}'".format(filename))
    dwg = ezdxf.readzip(filename)
    print_stats(dwg)
def test_read_ac1009():
    dwg = ezdxf.readzip(get_zip_path(ZIPFILE), "AC1009.dxf")
    msp = dwg.modelspace()
    lines = msp.query("LINE")
    assert 255 == len(lines)
def test_read_from_zip():
    dwg = ezdxf.readzip(FILE_3)
    assert dwg.filename is not None
    assert dwg.dxfversion is not None