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):CONNECT Edition, 08.11.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

  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 3

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