Skip to main content

Errors: Unable to run macro for “C3DPipeNetworkRules.dll”

By March 24, 2019No Comments


In a localized version of Autodesk® AutoCAD® Civil 3D® (other language than English or Country Kit) a Pipe Network is created.
The Pipe Network Catalog was set to the according country specific folder.
When creating the pipe network an error message appears:

Source: AeccDbNetworkRule::runDotNetScript
Unable to run macro: C:\ProgramData\Autodesk\C3D 2015\enu\C3DPipeNetworkRules.dll:PipeNetworkRule.SetSumpDepth::ApplyRuleThe error message might also appear when creating a pipe in Autodesk® InfraWorks™ and importing the data into Civil 3D via the IMX format.


  • One reason for this error is the use of english based rules in a localized version of the program
  • Another reason is the use of a drawing with pipes that was started in an older version of Civil 3D and opened in a newer version of the program
  • Missing Microsoft .NET 4.5 framework


  1. Frst update the Civil 3D Object Enablers:
    • Uninstall all Civil 3D 20xx Object Enablers
    • Download the updated version from the knowledge network: AutoCAD Civil 3D Object Enabler Download
    • Install and test if the issue is fixed
    • Restart Civil 3D

    If the above solution does not work load the attached  C3DPipeNetworkRules.dll and replace the existing file:

    1. Close AutoCAD Civil 3D 20xx
    2. Go to this location: C:\ProgramData\Autodesk\C3D 20xx\enu (or ..\deu, etc. according to your language)
    3. Rename C3DPipeNetworkRules.dll to C3DPipeNetworkRules.dll.OLD
    4. Download attached C3DPipeNetworkRules.ZIP file and unzip it into C:\ProgramData\Autodesk\C3D 20xx\enu
    5. Right mouse click on the pasted file and click “Properties”
    6. In the “General” tab at the bottom, unblock the file if prompted
    7. Launch AutoCAD Civil 3D 20xx and open desired drawing file
    8. Apply rules to your pipe network and notice that Sump Depth is now 0.0

    Alternative options:

    • If it is a language hiccup a new Country Kit template DWT might fix the issue automatically. Visit the Civil 3D support pages and download and install the latest Country Kit.
    • The problem can be solved manually by deleting the pipe and structure rules in the pipe settings and adding them in the localized version.
    • If the issue is due to an older drawing opened in a newer version of Civil 3D it is needed to delete the rules and add them again in the current program version.
    • Make sure Microsoft .NET 4.5 is installed
    • Change the order of the pipe rules in the pipe properties

    If you would like to include this fix with your AutoCAD Civil 3D 20xx deployment, you can replace original  C3DPipeNetworkRules.dll in your deployment (path is  Img\x64\en-US\C3D\C3DPS\AllUsersContent) with the downloaded  C3DPipeNetworkRules.dll.