![]() |
【转帖】c#编程中遇到的几个路径 - 精华帖集合
c#编程中遇到的几个路径 - 精华帖集合
www.dimcax.com c#编程中遇到的几个路径 1.c#中得到相对路径 (new fileinfo(assembly.getexecutingassembly().location.tostring())).directoryname; 2.c#得到当前运行cad文件保存路径 application.getsystemvariable("dwgprefix").tostring(); 3.c#得到cad可搜索路径中某一文件的全路径 hostapplicationservices.current.findfile("landuse.mdb", autodesk.autocad.applicationservices.application.documentmanager.mdiactivedocument.database, findfilehint.default); 4.c#获取当前运行autocad的路径 process.getcurrentprocess().mainmodule.filename; 暂时就想到这么多了,以后想到再补充 c#中得到相对路径 这个就是能得到dll文件的路径,真的太棒了! 呵呵 书山有路勤为径,学海无涯苦作舟! 很好,这种帖子多多益善,加精了 c#最适合开发autocad,因为它拥有vb容易的特点,却具有vc++的强大功能。 老大,以后我会努力多发技术贴! 书山有路勤为径,学海无涯苦作舟! 不错,学习了 非常不错,支持一下。 |
所有的时间均为北京时间。 现在的时间是 10:34 PM. |