CAD二次开发dll中取dll的路径

使用System.Environment.CurrentDirectory,返回的是dll所在的目录,开发过程中一般就是解决方案文件夹里的项目文件夹+bin\debug 。

使用Application.StartupPath返回的是Cad的安装目录,比如 ...\autocad2010。

posted @ 2017-12-27 15:17  ohmycode  阅读(208)  评论(0编辑  收藏  举报