Launch accoreconsole as process from vb.net not working in AutoCad 2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a VB console app that launches AutoCad's coreconsole as a process. It includes an argument that is a script which loads and calls autolisp programming. It works just fine with AutoCad 2018 but not on 2022. Below is the VB code and the script file. Suggestions on why 2022 is not cooperating? Note that the trusted paths are set just the same in 2018 and 2022. SECURELOAD is set to 0.
Dim ACC_Process As Process
Dim ProcessProperties As New ProcessStartInfo
ProcessProperties.FileName = "C:\Program Files\Autodesk\AutoCAD 2022\accoreconsole.exe"
ProcessProperties.Arguments = " /s " & "C:\temp\ACCoreconsoleScript.scr"
ProcessProperties.WindowStyle = ProcessWindowStyle.Minimized
ACC_Process = Process.Start(ProcessProperties)
Script:
(load "c:\\acadcode\\ccm.lsp")
(ccm)