Message 1 of 5

Not applicable
02-22-2018
05:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an existing EXE program in VS 2017, and I want to add the capacity to create a polyline in Autocad 2018.
Usually, I would use VBA, but now I need to use VB.NET, because my exe is in vb.net
I'm confused. Should I use ObjectARX SDK? Is compatible with VS 2017? or should I keep the COM interfaces?
I installed ObjectARX, and it copied AcCoreMgd, AcDbMgd And AcMgd dlls to the autocad folder, but it decompressed files in C:\Autodesk\Autodesk_ObjectARX_2018_Win_64_and_32_Bit
Can I delete the folder C:\Autodesk\Autodesk_ObjectARX_2018_Win_64_and_32_Bit?
I tried this code to connect to autocad
(I added the references to AcCoreMgd, AcDbMgd And AcMgd dlls)
Imports Autodesk.AutoCAD.Runtime Imports Autodesk.AutoCAD.ApplicationServices Imports Autodesk.AutoCAD.DatabaseServices Imports Autodesk.AutoCAD.Geometry Module ModuleAutocad Public AutocadApp As Document Public AutocadDatabase As Database Public Sub ConnectToAutocad() ' Get the current document and database AutocadApp = Application.DocumentManager.MdiActiveDocument AutocadDatabase = AutocadApp.Database End Sub End Module
but it causes this error:
System.IO.FileNotFoundException: 'Could not load file or assembly 'accoremgd, Version=22.0.0.0,
Solved! Go to Solution.