I am beginner to AutoCAD customization in VB.net. I have added following references to my project. 1. accoremgd.dll 2. AcCui.dll 3. acmgd.dll 4. acdbmgd.dll
following is my code:
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.Runtime
Imports System.IO
Imports Autodesk.AutoCAD.Interop
Imports Autodesk.AutoCAD.Interop.Common
Imports System.Runtime.InteropServices
Public Class Form1
Private Sub btnShow_Click(sender As Object, e As EventArgs) Handles btnShow.Click
Dim str_path As String
str_path = Application.DocumentManager.MdiActiveDocument.Name
txtbox1.Text = str_path
End Sub
End Class
And I am getting following exception: An unhandled exception of type 'System.IO.FileNotFoundException' occurred in System.Windows.Forms.dll
Additional information: Could not load file or assembly 'accoremgd, Version=20.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
What to do? Thanks in advance :)