- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We have had a VB.net program on a 32-bit machine for years. As part of its process, it was launching a standalone seat of AutoCad 2009 (which gives you an idea of how old it is). Recently, we upgraded to 64-bit AutoCad 2015 and migrated the program to a 64-bit machine. All works wonderfully from the Debugger, or when compiled as an executable and triggered manually. However, as with the original, we want to trigger the program with Task Scheduler. Here is where an error occurs. The error I get is that the “value does not fall within the expected range.” I have tried every different incantation to start AutoCad that I have come across:
- acadApp = New AcadApplication
- acadApp = CreateObject(“Autocad.Application.20.0”)
- Dim acType As Type = Type.GetTypeFromProgID(“AutoCAD.Application.20”)
- acadApp = Activator.CreateInstance(acType, True)
But nothing seems to solve the issue.
Any suggestions would be greatly appreciated.
Software Programmer
Draper, Inc.
Solved! Go to Solution.