hexagon logo

"CAD file could not be read" error message

​See attached pic. Anyone ever seen this message before? How can I fix it? Operator said the program was running fine today and all of a sudden this happens. I was wondering if I can try and restore the CAD file from an earlier version (like yesterday) and then try it. Any ideas?
  • restore the cad & program if you can. Chances are that program is beyond all hope, not the cad file.
  • Looks like a corrupted program. Usually a total loss. Hope you have a backup.

    Look at the size of the .prg and if it's something really small, like 15kb, then the program is gone. If it's still showing a decent file size for the size of your program, you could maybe move the CAD file away from the directory, try to open the prg without cad, save it, move the CAD file back and try to open it again.
  • If it is a problem with the CAD file, you could try to File/Import the IGES file again and Replace the original when prompted. . . .
  • Rename the .CAD to something else than .CAD and try opening the program again. If the program opens without issues, follow Don's suggestion.
  • I restored the program, CAD file and other associated files from the day before and that seemed to do the trick. I'm not sure how the CAD file got corrupted. Sometimes I think the operators just try to sabotage things just to keep me on my toes!
  • I had another program yesterday screw up with more CAD issues. The operator ran a couple parts with the existing program and then suddenly he got the same error message as above "CAD file could not be read. Attempted to access an unnamed file past its end." Our server system does file backups twice a day, so I tried to restore the program from the day before, got the same error. Then I tried to restore just the CAD file from the day before, a week before, a few months ago, and got the same problem. Kept getting the same error message. The only way I saved it is that we have a similar program that was basically the same program originally, we just added some more code and then saved it under a different program name. I snagged the CAD file from that program and renamed it to match the one with the problem and it fixed it.

    So that leads me to two questions. One, how and why are these CAD files getting corrupted and how can I prevent this from happening in the future? Two, if this happens again and I can't fix the CAD file, can I just delete it? I mean, will most programs run or function okay without the CAD model?
  • Most programs will run and analyze your data based on the theoretical inputs made for the features. So yes, you should be safe in most practices to remove your cad and just run the prg file. However if you utilize scanning, you will need to verify the settings being used, if you are using the cad as master, then you will need to keep a cad associated to your program file.
  • Are you opening the Programs from the server? make sure they are all on the local drive. Are you using Direct CAD interface? Models on the server? What version of PC-DMIS??
  • Are you opening the Programs from the server? make sure they are all on the local drive. Are you using Direct CAD interface? Models on the server? What version of PC-DMIS??


    We are running programs from a shared network drive. We are running PC-DMIS version 2021.2. I have no idea what Direct CAD interface is...
  • Only run programs from your local drive! Back them up on the server. Direct CAD interface is an option (paid) that lets you import CAD files directly from your CAD directory. It is very buggy with Solidworks.

    Use STEP AP214 if you can. less issues.