Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dim pasteDwg As AcadDocument
Dim acadApp As AcadApplication
acadApp = GetObject(, "AutoCAD.Application.24.2")
pasteDwg = acadApp.ActiveDocument
Dim lm As LayoutManager = LayoutManager.Current
The second it hits LayoutManager.Current I get hit with COmmon Language Runtime Detected an Invalid program
I have these imports
Imports Autodesk.AutoCAD.Interop
Imports Autodesk.AutoCAD.Interop.Common
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.ApplicationServices
*Note Runtime and APplication serverices are greyed out and considered unnecessary but I believe I will need them.
Solved! Go to Solution.