Unable to Locate Autodesk.Civil.DatabaseServices.dll in Civil 3D 2024

Unable to Locate Autodesk.Civil.DatabaseServices.dll in Civil 3D 2024

CHEETAH696NM8
Explorer Explorer
1,810 Views
8 Replies
Message 1 of 9

Unable to Locate Autodesk.Civil.DatabaseServices.dll in Civil 3D 2024

CHEETAH696NM8
Explorer
Explorer

Hello,

I am new to using Visual Studio and currently working with Civil 3D 2024. I am trying to reference the Autodesk.Civil.DatabaseServices.dll in my project, but I am unable to find the file. Could someone kindly guide me on how to locate and reference this DLL in Visual Studio?

Thank you for your help!

0 Likes
1,811 Views
8 Replies
Replies (8)
Message 2 of 9

Jeff_M
Consultant
Consultant

There is no such file. These are the .NET files needed:

2024-10-03_11-44-53.png

Jeff_M, also a frequent Swamper
EESignature
Message 3 of 9

cturlington
Collaborator
Collaborator

Jeff M,

You previously replied that, regarding these files "Autodesk.Civil.DatabaseServices.dll" and "Autodesk.Civil.dll," they are no longer provided.  But you did not mention what they use as a replacement for them to have access to the surface API data in Civil 3D 2026.  Trying to write a C# program using the Visual Lisp editor.  Can you help by listing the reference files I need, what they were renamed to, or where I can find these files?

 

Thanks in advance for any suggestions.

0 Likes
Message 4 of 9

Jeff_M
Consultant
Consultant

@cturlington  I'm not sure what , exactly, you mean by this " Trying to write a C# program using the Visual Lisp editor. "

If you are writing a lisp program you will need to reference the COM files. Use this:

(defun getaeccApp (module / *acad* C3D) ;; module must be "Land", "Pipe", "Roadway", or "Survey"
  (vl-load-com)
  (if (and (setq *acad* (vlax-get-acad-object))
	   (setq C3D (strcat "HKEY_LOCAL_MACHINE\\"
			     (if vlax-user-product-key
			       (vlax-user-product-key)
			       (vlax-product-key)
			     )
		     )
		 C3D (vl-registry-read C3D "Release")
		 C3D (substr
		       C3D
		       1
		       (vl-string-search
			 "."
			 C3D
			 (+ (vl-string-search "." C3D) 1)
		       )
		     )
		 C3D (vla-getinterfaceobject
		       (vlax-get-acad-object)
		       (strcat "AeccXUi" module ".Aecc" (if (= (strcase module) "LAND") "" module) "Application." C3D)
		     )
	   )
      )
    C3D
  )
)

 

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 5 of 9

cturlington
Collaborator
Collaborator

Sorry Jeff,

I meant Visual Studio.

0 Likes
Message 6 of 9

andrewpuller3811
Advisor
Advisor

The references Jeff listed above are the ones you need to write a .net programme in visual studio for civil 3d.

 

Below is a bit more information on what the dlls provide access to and where they are located.

 

Autocad dlls - Located in C:\Program Files\Autodesk\AutoCAD 2024

 

AcDbMgd.dll - Used for working with objects stored in a drawing file, such as lines, circles, and blocks.

AcMgd.dll - Provides access to the AutoCAD application and user interface components, including the editor and plotting services.

AcCoreMgd.dll - Contains functionality related to the editor, publishing, plotting, and defining commands.

 

Civil 3d dlls -

 

Aecbasemgd.dll - Located in C:\Program Files\Autodesk\AutoCAD 2024\ACA

Aeccdbmgd.dll - Used for working with Civil 3d objects stored in a drawing file, such as surfaces. - Located in C:\Program Files\Autodesk\AutoCAD 2024\C3D

AeccPressurePipesMgd.dll - Used for working with Civil 3d Pressure pipe objects stored in a drawing file. - Located in C:\Program Files\Autodesk\AutoCAD 2024\C3D

 

 

Autocad Developer documentation can be found here-

https://help.autodesk.com/view/OARX/2024/ENU/?guid=GUID-71683E52-850F-434E-AD8C-3DB20BCBAD14

 

Civil 3d Developer documentation can be found here-

https://help.autodesk.com/view/CIV3D/2024/ENU/?guid=GUID-DA303320-B66D-4F4F-A4F4-9FBBEC0754E0

 



If a post provides a fix for your issue, click on "Accept as Solution" to help other users find solutions to problems they might have that are similar to yours.

Andrew Puller
Maitland, NSW, Australia
Windows 11
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2023
0 Likes
Message 7 of 9

cturlington
Collaborator
Collaborator

Thank you, Andrew,

I just did a full C:/ search for the reference names: "AeccCivilDbMgd.dll," "AeccCivilMgd," "AeccLandMgd.dll," "Aecc.Civil.dll," "Aecc.Civil.DatabaseServices.dll," but none were found.  I was hoping to find these in C3d 2026.  But apparently, they are not included in the current download, and alternate references are used in their place. Are these specific ones available on the Autodesk site somewhere?  BTW:  I also have C3d 2024 loaded, so I know they are not in that version either.

 

Thanks again for your time and suggestions.

0 Likes
Message 8 of 9

andrewpuller3811
Advisor
Advisor

You are searching for the wrong files -

 

The files are named - "AcDbMgd.dll", "AcMgd.dll", "AcCoreMgd.dll", "Aecbasemgd.dll", "Aeccdbmgd.dll"

 

As above, for civil 3d 2024 they will be found in -

"C:\Program Files\Autodesk\AutoCAD 2024"
"C:\Program Files\Autodesk\AutoCAD 2024\ACA"
"C:\Program Files\Autodesk\AutoCAD 2024\C3D"

 

For Civil 3d 2026 they will be found in -

"C:\Program Files\Autodesk\AutoCAD 2026"
"C:\Program Files\Autodesk\AutoCAD 2026\ACA"
"C:\Program Files\Autodesk\AutoCAD 2026\C3D"

 

 



If a post provides a fix for your issue, click on "Accept as Solution" to help other users find solutions to problems they might have that are similar to yours.

Andrew Puller
Maitland, NSW, Australia
Windows 11
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2023
0 Likes
Message 9 of 9

cturlington
Collaborator
Collaborator

Thank you, Andrew!

 

That works, knowing the folders to find these in.  I was not familiar with the "ACA" folder.

0 Likes