Error when importing a .DXF file with ModelBuilder "Attempted to read or write protected memory..."

Product(s): WaterGEMS, WaterCAD, HAMMER, SewerGEMS, SewerCAD, StormCAD, CivilStorm, PondPack
Version(s): 08.11.XX.XX and 10.00.XX.XX
Area: Input and Data Layout

Problem

When importing a DXF file using ModelBuilder the following error appears:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

Solution 1

If the original CAD line work was exported to a DXF file, then try saving as a DXF instead.

Solution 2 (Requires version 10.00.XX.XX)

In one case, there was an issue with the original DWG that was saved to a DXF file.

The release of the CONNECT Edition version of the products (10.00.XX.XX) introduces the ability to use MicroStation DGN files in ModelBuilder.

  1. Open the DXF file using a CAD editing application (eg. MicroStation, AutoCAD).
  2. Save as a DGN.
  3. Use the DGN to import the data into ModelBuilder.

Solution 3

  1. Open the original CAD file in a CAD editing application (eg. MicroStation, AutoCAD).
  2. Save the file as a DGN.
  3. Save that DGN as a DXF.
  4. Use the new DXF to import the data into ModelBuilder.

Solution 4

There may be an issue with the seed/template file that was used to create the original CAD file.

Try copying the linework to a new file that uses a different seed/template file.

See Also

Wiki: What's new in SewerGEMS CONNECT Edition

Wiki: What's new with WaterGEMS and WaterCAD CONNECT Edition

Wiki: Importing A CAD (eg. DXF or DGN) Drawing Using ModelBuilder [TN]

Forum: ModelBuilder Importing 2007 .DXF File - Corruption Error

Recommended
Related