- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good evening,
as a .net8 beginner, I'm encountering a problem in Visual Studio 2022, in C# and with the 'AeecDbMgd.dll' dll.
This dll is required to access the 'CivilDocument' class.
I've developed a very simple code that should enable me to display the identifiers of the pressurized networks I've created in a DWG file (Civil 3D).
using Autodesk.Civil.ApplicationServices;
using Autodesk.Civil.DatabaseServices;
using Autodesk.Civil.Runtime;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.Civil.Settings;
using System.Linq;
Console.WriteLine("Starting AutoCAD commands...");
// Obtient le document civil actif
CivilDocument civilDoc = CivilApplication.ActiveDocument;
// Appelle la méthode pour obtenir les IDs des réseaux de tuyaux sous pression
ObjectIdCollection networksIds = civilDoc.GetPressurePipeNetworkIds();
foreach (ObjectId networkId in networksIds)
{
Console.WriteLine(networkId);
}
Console.WriteLine("Press any key to exit.");
Console.ReadKey();
In the Assemblies, I've added the following dlls:
And the dll is present according to its path: C:\Program Files\Autodesk\AutoCAD 2025\C3D\AeccDbMgd.dll
When I run the program, I get this error message:
We've also tried with the same dll but with the Civil 3D 2024 version, as well as several packages where it's present. We've also tried copying it locally, but to no avail, I still get this error message.
Any ideas?
Thanks in advance.
Solved! Go to Solution.