Product(s): | WaterCAD, SewerCAD, Hammer, StormCAD, CivilStorm, SewerGEMS, WaterGEMS | ||
Version(s): | 08.11.XX.XX and higher | ||
Area: | Layout and Data Input |
When adding a shapefile as a background, the program crashes or the following error appears:
"The shapefile is invalid or corrupt."
OR
When importing a DXF as a background, the following error appears:
"The CAD is invalid or corrupt"
First, make sure your shapefile consists of at least three files, with the same base file name, with extensions of .shp, .shx and .dbf. All three must be present in order to open the shapefile.
If this does not help, try opening the file in another program such as ArcGIS to see if it is corrupt. If it is not corrupt, try reinstalling the OpenFlows Product.
If the program is crashing (for example the whole program closes / disappears without a message) but the file opens in other software (or in the "Preview" section in ModelBuilder), the problem may be related to your computer's graphics hardware drivers, which are used to render the backgrounds in the drawing pane. Update the drivers per the advice in this article. Note that it has been found on several occasions that the AMD "Adrenalin" (software for detecting and installing video drivers for onboard AMD CPU video hardware) did not provide the latest driver version. Be sure to also perform all available updates seen in Windows Updates, as well as any updates available from your computer manufacturer (such as HP).
Reinstalling the OpenFlows product is another option if other software is able to read the shapefile.
Check if the file works in other software.
First, try opening the DXF in a CAD program such as AutoCAD or MicroStation to make sure it is not corrupt. If it is OK, try saving it to an earlier DXF format, such as 2004 or R12. Note that in some cases, the corruption may surface during the process of saving to DXF. So, if the original file is a SWG or DGN, try opening the DXF version of it in AutoCAD or MicroStation as well. If the DXF won't open in AutoCAD, contact Autodesk for help on why the original DWG is not able to successfully export to DXF.
Consider AutoCAD or MicroStation integration instead of Standalone
Another option to consider would be to use the AutoCAD or MicroStation integrated version of the OpenFlows product. For some products, AutoCAD integration is an extra cost - check your licensing. For version compatibility, see this article.
New drawing
Another option is to try copying the drawing into a new drawing and then create the DXF from the new drawing.
Linetype Dependency
If the DXF has a linetype dependency, you may need to remove that first, using these steps:
1) Start autocad
2) Run the "DXFIN" command, and choose the dxf in question
3) At the prompt for the linetype/font, just click Cancel to continue
4) Enter these commands:
Command:
CHANGE
Select objects: all[Enter]
X found
Y were not in current space.
Select objects: [Enter]
Specify change point or [Properties]: pr[Enter]
Enter property to change
[Color/Elev/LAyer/LType/ltScale/LWeight/Thickness/Material/Annotative]:
lt[Enter]
Enter new linetype name <varies>: continuous[Enter]
Enter property to change
[Color/Elev/LAyer/LType/ltScale/LWeight/Thickness/Material/Annotative]:
[Enter]
5) Then, use DXFOUT to re-export it.
The specified module could not be found (Exception from HRESULT: 0x8007007E)