Did you ever look for a Civil 3D Database Snoop utility ? If yes, the following information might be useful to you. Please note, the source code of this utility is also uploaded to Civil 3D Developer ceneter page.
Snoop Civil3D 2012 Database is now Live in Civil 3D Developer Center Page http://usa.autodesk.com/adsk/servlet/index?siteID=
This tool allows developers inspect the Civil3D Database without writing code. Everything that is shown is accessible through the API, but this tool does not show everything is accessible on the API. It works by showing the root objects of Civil3D 2012 (i.e. Styles, Alignments, Corridors, Assemblies, Subassemblies, Pipe networks and Surfaces) listing them on the left with all objects on each collections, such as all alignments on the active drawing, and once click on each item, list all its properties on right.
To use this tool, start AutoCAD Civil 3D 2012, type NETLOAD at the command line and load the 'SnoopCivil3DObjects.dll'. Run snoopCivil3DDB command. Once the DLL is loaded, you can invoke the command from right mouse click 'Snoop Civil3D'.
Tool / Utility download link : SnoopCivil3DTool
Source code of this Utility : SnoopCivil3DVSProj
Solved! Go to Solution.
Is there or will there be a version of SnoopCivil3DTool.dll that can be loaded and used in Civil 3D 2013?
Source code of Snoop Civil3D 2012 Database Tool is available in the following link and one can compile it as well as enhance it to access more Civil 3D objects.
I am attaching here the compiled version for Civil 3D 2013 x64 bit for you. Hope this helps.
Wishing you all a very Happy and Prosperous New Year !
I tried loading the compiled DLL on a machine that only has 2013 C3D x64 installed. It is loading from a local drive.
I get the following error:
Cannot load assembly. Error details: System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Temp\SnoopC3DObjects2013x64.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///C:\Temp\SnoopC3DObjects2013x64.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
I noticed that the VB project info still references 2012 dll files. Could this be the problem?
I actually do have that option. We are running an enterprise version of Windows 7, so it may have been disabled by the IT ninjas. I have not had to do that in the past and have NETloaded many downloaded files without any problem.
Am I correct is my guess that the SnoopCivil3D.vbproj file would control the references in the compiled DLL?
<HintPath>C:\Program Files\Autodesk\AutoCAD Civil 3D 2012\acdbmgd.dll</HintPath>
<HintPath>C:\Program Files\Autodesk\AutoCAD Civil 3D 2012\Acmgd.dll</HintPath>
<HintPath>C:\Program Files\Autodesk\AutoCAD Civil 3D 2012\AecBaseMgd.dll</HintPath>
<HintPath>C:\Program Files\Autodesk\AutoCAD Civil 3D 2012\AeccDbMgd.dll</HintPath>
Yes, that's correct, Stacy. However, the link Partha gave is for the 2012 project so it makes sense those are the referenced files. He only posted the compiled for 2013 dll, not the 2013 project
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register