How to close a file in Autocad using C# keeping acad.exe running?

后端 未结 6 1617
执念已碎
执念已碎 2020-12-19 19:32

I am using visual studio 2010 and I am having a .DWG file which I want to open in autocad. Till now I have used this.

Process p = new Process();
ProcessStart         


        
6条回答
  •  北荒
    北荒 (楼主)
    2020-12-19 20:17

    I doubt you will be able to do this unless AutoCAD has an API that you can hook into and ask it to close the file for you.

    Your c# app can only do things to the process (acad.exe) , it doesn't have access to the internal operations of that process.

提交回复
热议问题