diff --git a/.gitignore b/.gitignore index fd573e8..7836f58 100644 --- a/.gitignore +++ b/.gitignore @@ -11,16 +11,8 @@ *.userprefs # Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -bld/ -[Bb]in/ [Oo]bj/ -[Ll]og/ +/Civil3DSnoopDB.bundle/Contents/net*/ # Visual Studio 2015 cache/options directory .vs/ diff --git a/Civil3DSnoopDB.bundle/Contents/R18/SnoopCivil3DObjects.dll b/Civil3DSnoopDB.bundle/Contents/R18/SnoopCivil3DObjects.dll deleted file mode 100644 index c24eb28..0000000 Binary files a/Civil3DSnoopDB.bundle/Contents/R18/SnoopCivil3DObjects.dll and /dev/null differ diff --git a/Civil3DSnoopDB.bundle/Contents/R19/SnoopCivil3DObjects.dll b/Civil3DSnoopDB.bundle/Contents/R19/SnoopCivil3DObjects.dll deleted file mode 100644 index 2c25a24..0000000 Binary files a/Civil3DSnoopDB.bundle/Contents/R19/SnoopCivil3DObjects.dll and /dev/null differ diff --git a/Civil3DSnoopDB.bundle/Contents/R20/SnoopCivil3DObjects.dll b/Civil3DSnoopDB.bundle/Contents/R20/SnoopCivil3DObjects.dll deleted file mode 100644 index ccf85ab..0000000 Binary files a/Civil3DSnoopDB.bundle/Contents/R20/SnoopCivil3DObjects.dll and /dev/null differ diff --git a/Civil3DSnoopDB.bundle/Contents/R21/SnoopCivil3DObjects.xml b/Civil3DSnoopDB.bundle/Contents/R21/SnoopCivil3DObjects.xml deleted file mode 100644 index cab6b6f..0000000 --- a/Civil3DSnoopDB.bundle/Contents/R21/SnoopCivil3DObjects.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - -SnoopCivil3DObjects - - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - diff --git a/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/My Project/AssemblyInfo.vb b/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/My Project/AssemblyInfo.vb deleted file mode 100644 index a40b502..0000000 --- a/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/My Project/AssemblyInfo.vb +++ /dev/null @@ -1,35 +0,0 @@ -Imports System -Imports System.Reflection -Imports System.Runtime.InteropServices - -' General Information about an assembly is controlled through the following -' set of attributes. Change these attribute values to modify the information -' associated with an assembly. - -' Review the values of the assembly attributes - - - - - - - - - - -'The following GUID is for the ID of the typelib if this project is exposed to COM - - -' Version information for an assembly consists of the following four values: -' -' Major Version -' Minor Version -' Build Number -' Revision -' -' You can specify all the values or you can default the Build and Revision Numbers -' by using the '*' as shown below: -' - - - diff --git a/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/SnoopCivil3D.sln b/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/SnoopCivil3D.sln index 64beac3..884da3a 100644 --- a/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/SnoopCivil3D.sln +++ b/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/SnoopCivil3D.sln @@ -1,8 +1,17 @@  -Microsoft Visual Studio Solution File, Format Version 11.00 -# Visual Studio 2010 +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.13.35931.197 +MinimumVisualStudioVersion = 10.0.40219.1 Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "SnoopCivil3D", "SnoopCivil3D.vbproj", "{CFEE93F5-0F41-4701-AF13-943E80405E59}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8EC462FD-D22E-90A8-E5CE-7E832BA40C5D}" + ProjectSection(SolutionItems) = preProject + ..\..\..\..\.gitignore = ..\..\..\..\.gitignore + ..\..\..\PackageContents.xml = ..\..\..\PackageContents.xml + ..\..\..\..\README.md = ..\..\..\..\README.md + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -17,4 +26,7 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {3DA1B3EF-F9D7-4B3E-AE4E-2C0CC51FF107} + EndGlobalSection EndGlobal diff --git a/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/SnoopCivil3D.vbproj b/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/SnoopCivil3D.vbproj index 7c0ade5..24c98a9 100644 --- a/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/SnoopCivil3D.vbproj +++ b/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/SnoopCivil3D.vbproj @@ -1,149 +1,36 @@ - - + + - Debug - AnyCPU - - - - - {CFEE93F5-0F41-4701-AF13-943E80405E59} - Library - SnoopCivil3DObjects SnoopCivil3DObjects - 512 - Windows - v4.5 - - - - true - full - true - true - bin\Debug\ - SnoopCivil3DObjects.xml - 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 - false - x64 - - - pdbonly - false - true - true - ..\..\R21\ - SnoopCivil3DObjects.xml - 42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 - false - - - On - - - Binary - - - Off - - - On + Autodesk Inc. + Copyright © Autodesk + ../../ + https://github.com/ADN-DevTech/Civil3DSnoop + Snoop Civil3D Objects + SnoopCivil3DObjects + net48;net8.0-windows + Snoop Civil3D Objects + true + true + 1.8.0 - - - ..\..\..\..\..\Program Files\Autodesk\Autodesk AutoCAD Civil 3D 2014\accoremgd.dll - False - - - ..\..\..\..\..\Program Files\Autodesk\Autodesk AutoCAD Civil 3D 2014\acdbmgd.dll - False - - - ..\..\..\..\..\Program Files\Autodesk\Autodesk AutoCAD Civil 3D 2014\acmgd.dll - False - - - ..\..\..\..\..\Program Files\Autodesk\Autodesk AutoCAD Civil 3D 2014\AecBaseMgd.dll - False - - - ..\..\..\..\..\Program Files\Autodesk\Autodesk AutoCAD Civil 3D 2014\AeccDbMgd.dll - False - - - - - - - - - - - - - - - - - - - - - - - - - - - frmSnoopObjects.vb - - - Form - - - - True - Application.myapp - - - True - True - Resources.resx - - - True - Settings.settings - True - - - - - frmSnoopObjects.vb - - - VbMyResourcesResXFileCodeGenerator - Resources.Designer.vb - My.Resources - Designer - + + + + runtime + + + runtime + - - - MyApplicationCodeGenerator - Application.Designer.vb - - - SettingsSingleFileGenerator - My - Settings.Designer.vb - + + + + runtime + + + runtime + - - - \ No newline at end of file + + diff --git a/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/SnoopCivil3D.vbproj.user b/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/SnoopCivil3D.vbproj.user index 2166a52..6be2e4a 100644 --- a/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/SnoopCivil3D.vbproj.user +++ b/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/SnoopCivil3D.vbproj.user @@ -2,11 +2,11 @@ Program - C:\Program Files\Autodesk\AutoCAD 2017\acad.exe + C:\Program Files\Autodesk\AutoCAD 2022\acad.exe false - /ld "C:\Program Files\Autodesk\AutoCAD 2017\\AecBase.dbx" /p "<<C3D_Metric>>" /product "C3D" /language "en-US" + /ld "C:\Program Files\Autodesk\AutoCAD 2022\\AecBase.dbx" /p "<<C3D_Metric>>" /product "C3D" /language "en-US" - C:\Program Files\Autodesk\AutoCAD 2017\;C:\Program Files\Autodesk\AutoCAD 2017\C3D\ + C:\Program Files\Autodesk\AutoCAD 2020\;C:\Program Files\Autodesk\AutoCAD 2022\C3D\ \ No newline at end of file diff --git a/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/frmSnoopObjects.vb b/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/frmSnoopObjects.vb index 44e00a5..97b9934 100644 --- a/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/frmSnoopObjects.vb +++ b/Civil3DSnoopDB.bundle/Contents/Source/SnoopCivil3D/frmSnoopObjects.vb @@ -408,7 +408,7 @@ Public Class frmSnoopObjects Private Sub btnSelectAnotherFile_Click(sender As Object, e As EventArgs) Handles btnSelectAnotherFile.Click Dim selFile As New Autodesk.AutoCAD.Windows.OpenFileDialog("Select file to inspect", Nothing, "dwg;", "Snoop Civil 3D Database", Autodesk.AutoCAD.Windows.OpenFileDialog.OpenFileDialogFlags.NoUrls And Autodesk.AutoCAD.Windows.OpenFileDialog.OpenFileDialogFlags.DoNotTransferRemoteFiles) - If (selFile.ShowDialog() = Windows.Forms.DialogResult.OK) Then + If (selFile.ShowDialog() = DialogResult.OK) Then Using db As New Database(False, True) db.ReadDwgFile(selFile.Filename, FileOpenMode.OpenForReadAndAllShare, True, String.Empty) Dim frm As New frmSnoopObjects(db) diff --git a/Civil3DSnoopDB.bundle/PackageContents.xml b/Civil3DSnoopDB.bundle/PackageContents.xml index cf7d6f9..5bde090 100644 --- a/Civil3DSnoopDB.bundle/PackageContents.xml +++ b/Civil3DSnoopDB.bundle/PackageContents.xml @@ -2,8 +2,15 @@ - - - + + + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 1670218..4963b43 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# Database Snoop for AutoCAD Civil 3D 2017 +# Database Snoop for Autodesk Civil 3D This tool uses .NET Reflection to list all properties of AutoCAD Civil 3D major objects, such as Alignments, Corridors, Surfaces, Networks, etc. It also lists collections items and allows selection of objects on-screen. # Setup -Open the [SnoopCivil3D.sln](Civil3DSnoopDB.bundle\Contents\Source\SnoopCivil3D\SnoopCivil3D.sln) on Visual Studio 2015. All references should be ready for AutoCAD Civil 3D 2017 default install path, otherwise go to project properties >> References, then click on Reference Paths and adjust. Build the project in Release, the DLL should be placed at /Contents/R21 folder. Copy the entire .bundle folder to c:\Program Files\Autodesk\Autodesk\ApplicationPlugins folder and launch Civil 3D. +Open the [SnoopCivil3D.sln](Civil3DSnoopDB.bundle\Contents\Source\SnoopCivil3D\SnoopCivil3D.sln) on Visual Studio. Build the project in Release, the DLL should be placed at /Contents/net** folder. Copy the entire .bundle folder to %AppData%\Autodesk\ApplicationPlugins folder and launch Civil 3D. # Usage @@ -32,3 +32,6 @@ The tool may stop working on some properties that cannot be reflected (using .NE - 1.3 Support for additional drawing - 1.4 2017 support - 1.5 2018 support +- 1.6 2020 support +- 1.7 2022 support +- 1.8 .NET 8.0 support