I am working on a process to read in dwg files, parse the text and assign metadata attributes. I have one file that I am using that had missing xrefs. Using RealDwg Reader, it worked fine. But, when I bound the xrefs, it gave me the following error after reading in most of the file:
AutoCAD Reader: An error occurred for dataset '<filepath>\FIRESPRINKLER.dwg', in function RealDWGReader::processDimBlockCommon: 'eNullObjectId'
I purged and also made a .dxf file, but still got the error. I am using FME 2023.2.4
Using the regular AutoCAD dwg/dxf Reader, it worked no problem. I suspect there is some entity in the CAD file that the RealDwg Reader did not like, but after multiple purges and audits, I can’t find anything to delete. If I am going to publish this Workspace, I need to know if there are things to look for that would help choose the correct reader. The file is in AutoCAD version 2018.
Questions:
- Is this error related to a specific function in RealDwg Reader, or is it just choking on an entity in the file in general?
- Are there any guidelines about when to use either Reader?
- Assuming the order of features read were in the same order, the error occurred trying to read a dynamic block. So, I exported the block from the file and inFME2023.2.4: RealDwg gave me the same error! The regular AutoCAD Reader had no problem. In FME 2023.2, the block was read fine by both readers. I have attached the block that gave the error in the RealDWG Reader.
- Could there be a bug in FME 2023.2.4 ?
I then launched my older FME build, 2023.2, and I was able to read the file with both Real and AutoCAD reader, no problem, but they returned different numbers of features:
Any insight is appreciated. If it is needed, I can file a bug report.
Thanks,
-Loren