使用System.Environment.CurrentDirectory,返回的是dll所在的目录,开发过程中一般就是解决方案文件夹里的项目文件夹+bin\debug 。
使用Application.StartupPath返回的是Cad的安装目录,比如 ...\autocad2010。
使用System.Environment.CurrentDirectory,返回的是dll所在的目录,开发过程中一般就是解决方案文件夹里的项目文件夹+bin\debug 。
使用Application.StartupPath返回的是Cad的安装目录,比如 ...\autocad2010。
转载于:https://www.cnblogs.com/guojk-zj/p/8125905.html