Skip to main content

I'm a blockhead: How can I read DWG files within a ZIP-file? I'm getting errors like this:

ERROR |AutoCAD Reader: Error opening file 'c:\\temp_fme\\FME_TempFileStore_1598434178785_2600\\ds_1598434178786_2600\\5120.0400-025_T03_[20190509] - V_1598434178787_2600\\*.dwg' during version check

WARN |A fatal error has occurred. Check the logfile above for details

ERROR |Failed to obtain any schemas from reader 'ACAD' from 1 datasets. This may be due to invalid datasets or format accessibility issues due to licensing, dependencies, or module loading. See logfile for more information

 

My main purpose is to read a folder, where several ZIP files are in which each contain one or more DWG files (directly or in subfolders).

 

Any suggestions or hints?

Normally FME shouldn't have a problem reading zipped files, it'll unzip them to a temp location (as you can see) and read them. Do you have this issue with all zipped DWG files or just this specific one? If it's this specific one, unzip it manually and read it directly to ascertain whether it's something in the DWG itself or in the zip.


Yup, I'm also surprised that it won't read within any ZIP-file.

When I unzip it manually and read the DWG, there is no problem.

I already tried different versions: FME 2019, installed on Win7 64bit and FME 2020, installed on Win10 64bit.

I don't get it 😶


The only time I've had a problem with zip files is when the temp file location path exceeded the windows character limit. It doesn't look like that should be the case here though


The only time I've had a problem with zip files is when the temp file location path exceeded the windows character limit. It doesn't look like that should be the case here though

Good hint, but: what a bummer!

So I started from scratch:

  • creating DWG files in AutoCAD
    • simple drawing, saved as DWG version 2018
    • simple drawing, saved as DWG version 2013
    • simple drawing, saved as DWG version 2010
  • zipped them in seperate ZIP files
  • added DWG-reader in FME
    • DWG file version 2018: successfully read directly and zipped
    • DWG file version 2013: successfully read directly and zipped
    • DWG file version 2010: successfully read directly and zipped
  • copied my desired DWG file to c:\\temp
    • couldn't read it zipped
    • successfully read when unzipped

The DWG file conatins external references. Might that be a problem?


If the reader doesn't unzip it automatically you can try the Unzipper transformer. It's a customer transformer which just unzips the files to a temp location. You can then use a FeatureReader to read the DWG files using the path from the result of the unzipper. Not a solution to your problem but perhaps a workaround?


Reply