I tryed to run AutoCAD with codes like:
Process myProc8;
myProc8 = Process.Start(@"C:\Program Files\AutoCAD 2010\acad.exe");
or:
System.Diagnostics.Process.Start(@"C:\Program Files\AutoCAD 2010\acad.exe");
or:
Process p = new Process();
p.StartInfo.FileName = @"C:\Program Files\AutoCAD 2010\acad.exe";
p.Start();
But when AutoCAD starts, show the error, see the attachment "p1", and in command line, see the attachment "p2".
How to start AutoCAD with no error and/or with a profile,...
Solved! Go to Solution.
Solved by OysteinW. Go to Solution.
I don't know about the second error, but I got the first error recently because I was debugging inside Civil3d while the "Working Directory"-folder in debug-settings was set to AutoCAD install folder.
Try setting "working directory" to "C:\Program Files\AutoCAD 2010\"
-Øystein
Can you be more specific? I also find among all posts these:
I will try to run as admin and figure it out what is with the IE.
I haven't tried starting AutoCAD from an external process like you seem to do here, but the error message is the same.
-Wich was resolved by setting working directory in debug settings for my project, or by setting working directory in the shortcut wich starts my program..
But I guess this is equivalent to:
Process p = new Process(); p.StartInfo.WorkingDirectory = @"C:\Program Files\AutoCAD 2010\";
p.StartInfo.FileName = @"C:\Program Files\AutoCAD 2010\acad.exe"; p.Start();
(But I haven't tested it).